summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-10 20:15:59 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-10 20:17:28 -0300
commit09c3517d57f4ba34c662d93e101c494e5a839480 (patch)
treed329466da1c653e43b2c7a53903e11dbda22a548 /src/tests/efl_mono/Eo.cs
parent4bacfe155f9161d09b19a81bb38080d2d53cd5bd (diff)
csharp: Add test for static interface members
For the checks added in D9893
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index efb1faa306..adfec9e175 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -607,4 +607,18 @@ class TestProtectedInterfaceMembers
607 } 607 }
608} 608}
609 609
610class TestStaticInterfaceMembers
611{
612 public static void test_interface_static_member()
613 {
614 var iface = typeof(Dummy.ITestIface);
615 var properties = iface.GetProperties(BindingFlags.Public | BindingFlags.Instance);
616 Test.AssertNull(properties.SingleOrDefault(p => p.Name == "StaticProp"));
617
618 var implementation = typeof(Dummy.TestObject);
619 properties = implementation.GetProperties(BindingFlags.Public | BindingFlags.Static);
620 Test.AssertNotNull(properties.SingleOrDefault(p => p.Name == "StaticProp"));
621 }
622}
623
610} 624}