summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2020-02-11 17:48:26 +0000
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2020-02-18 17:53:19 -0300
commitdf0715a9aa27903dd549c2b4516ab2cba0274413 (patch)
tree338fa2ea31b02e0a36dc16e8375e978569d6e38e /src/tests/efl_mono/Eo.cs
parenteba07471a0cb9baed2204856078f44cc2d31f7d9 (diff)
C#: Add error checking for Eina.Success_Flag return type
When a get and/or set from property is defined to return, explicitly, a Eina.Success_Flag, the mono generator will check the return value and generate an exception if the call fails. Resolves T8383. Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11281
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index 8c0c9ab994..641ddc0748 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -468,6 +468,27 @@ class TestCsharpProperties
468 Test.AssertEquals(ret, (1, 2)); 468 Test.AssertEquals(ret, (1, 2));
469 obj.Dispose(); 469 obj.Dispose();
470 } 470 }
471
472 public static void test_csharp_return_type_get_prop ()
473 {
474 var obj = new Dummy.TestObject();
475 obj.ReturnTypeGetProp = 5;
476 var i = obj.ReturnTypeGetProp;
477 }
478
479 public static void test_csharp_return_type_set_prop ()
480 {
481 var obj = new Dummy.TestObject();
482 obj.ReturnTypeSetProp = 5;
483 var i = obj.ReturnTypeSetProp;
484 }
485
486 public static void test_csharp_return_type_prop ()
487 {
488 var obj = new Dummy.TestObject();
489 obj.ReturnTypeProp = 5;
490 var i = obj.ReturnTypeProp;
491 }
471} 492}
472 493
473class TestEoGrandChildrenFinalize 494class TestEoGrandChildrenFinalize