summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-01-23 07:30:13 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-01-23 07:30:14 +0900
commit97098dcc50b62e51dad3469619ed55242ca01a80 (patch)
tree33d372fef1f883a12f4172ceb9ab07223ca28805 /src/tests/efl_mono/Eo.cs
parent5137f6d143c681fcf4f53e4e45df8af1a538ae75 (diff)
csharp: cleanup concrete class
Summary: Concrete class is only used to call static member of NativeMethod. they don't need any inheritance and implementation of c functions. Depends on D9893 Test Plan: ninja test Reviewers: lauromoura, felipealmeida Subscribers: Jaehyun_Cho, woohyun, segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9894
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index 70e9d29c16..8d00155e10 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -385,6 +385,16 @@ class TestEoMultipleChildClasses
385 385
386class TestCsharpProperties 386class TestCsharpProperties
387{ 387{
388
389 private class MyObject : Dummy.TestObject
390 {
391 public MyObject(Efl.Object parent = null) : base(parent)
392 {
393 }
394 private MyObject(ConstructingHandle ch) : base(ch)
395 {
396 }
397 }
388 public static void test_csharp_properties() 398 public static void test_csharp_properties()
389 { 399 {
390 var obj = new Dummy.TestObject(); 400 var obj = new Dummy.TestObject();
@@ -428,6 +438,28 @@ class TestCsharpProperties
428 iface.Dispose(); 438 iface.Dispose();
429 } 439 }
430 440
441 public static void test_iface_value_property()
442 {
443 var obj = new Dummy.TestObject();
444 var prop = new MyObject();
445
446 obj.IfaceValueProp = prop;
447 Test.AssertEquals(obj.IfaceValueProp, prop);
448
449 obj.Dispose();
450 prop.Dispose();
451 }
452
453 public static void test_iface_value_from_c()
454 {
455 var obj = new Dummy.TestObject();
456
457 obj.SetIfaceKlassProp(typeof(MyObject));
458 Test.AssertEquals(obj.IfaceValueFromC.GetType(), typeof(MyObject));
459
460 obj.Dispose();
461 }
462
431 public static void test_csharp_multi_valued_prop() 463 public static void test_csharp_multi_valued_prop()
432 { 464 {
433 var obj = new Dummy.TestObject(); 465 var obj = new Dummy.TestObject();