summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-15 11:30:24 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-15 11:38:08 -0300
commit4acc7e066758eca4837df83ccf6262fb479cc4ff (patch)
tree95b0d5fcd4aa6363e8d9f8927cd3895cf46812e1 /src/tests/efl_mono/Eo.cs
parent5ed079cb617e3a06b4727145693427a77d93b514 (diff)
csharp: Support Efl.Class for interfaces
Summary: The `GetEflClassStatic` method for interface is in their Concrete sidekick. Previously, passing a valid Eo interface as a type caused the binding to complain that `Type is not an Efl.Object`. Test Plan: run test case Reviewers: vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8360
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index 9329fbae12..95f9b7e1d8 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -446,6 +446,13 @@ class TestProvider
446 Test.AssertEquals(provider.GetType(), typeof(Dummy.Numberwrapper)); 446 Test.AssertEquals(provider.GetType(), typeof(Dummy.Numberwrapper));
447 Test.AssertEquals(provider.GetNumber(), 1999); 447 Test.AssertEquals(provider.GetNumber(), 1999);
448 } 448 }
449
450 public static void test_find_provider_iface()
451 {
452 var obj = new Dummy.TestObject();
453 Dummy.TestIface provider = Dummy.TestIfaceConcrete.static_cast(obj.FindProvider(typeof(Dummy.TestIface)));
454 Test.AssertEquals(provider.GetIfaceProp(), 1997);
455 }
449} 456}
450 457
451} 458}