summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-24 11:36:34 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-24 18:00:05 -0300
commit2e7b508312bf7dc6bd884475513f7d799d2f285d (patch)
tree54e94028e99f333ba6d4a2979fe9ced8cc66a2cf /src/tests/efl_mono/Eo.cs
parent351072711cbdea756421f22abc2382bc98e95e57 (diff)
csharp: Fix wrapping of private classes
Summary: Sometimes, valid Eo objects of private classes can be returned from methods. Currently we try to wrap in a minimal `Efl.Object` instance, but as it is an abstract class, we can't instantiate directly. This commits adds a dummy `Efl.ObjectRealized` to be instantiated when wrapping such classes alongside a test case. Fixes: T8258 Reviewers: felipealmeida, brunobelo, segfaultxavi, Jaehyun_Cho Reviewed By: brunobelo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10101
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index 4c7196ec5b..a2e178adbb 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -621,4 +621,15 @@ class TestStaticInterfaceMembers
621 } 621 }
622} 622}
623 623
624class TestHiddenClasses
625{
626 public static void test_hidden_class()
627 {
628 var obj = new Dummy.TestObject();
629 var hidden = obj.HiddenObject;
630
631 Test.AssertEquals(hidden.Name, "hidden_object");
632 }
633}
634
624} 635}