summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-10 22:30:40 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-12 21:23:42 -0300
commit65f868786a59533a1cbf9d58b886cdc4f49ceb94 (patch)
treea0d2478b2f8504cb14d2e06ea78cb3c5b655764a /src/tests/efl_mono/Eo.cs
parenta252c3445d2cf45aba332b6fcd634e54ee7239dc (diff)
efl_mono: Proper support for @class methods.
Previously, class methods were implemented as regular instance methods. This commits generates C# static methods for @class methods on the *Concrete classes (and their childs).
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index 60d66821c7..a0c7a9ea40 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -191,4 +191,21 @@ class TestEoParent
191 } 191 }
192} 192}
193 193
194class TestKlassMethods
195{
196 public static void basic_class_method()
197 {
198 int reference = 0xbeef;
199 test.TestingConcrete.SetKlassProp(reference);
200 Test.AssertEquals(reference, test.TestingConcrete.GetKlassProp());
201 }
202
203 public static void inherited_class_method()
204 {
205 int reference = 0xdead;
206 test.ChildConcrete.SetKlassProp(reference);
207 Test.AssertEquals(reference, test.ChildConcrete.GetKlassProp());
208 }
209}
210
194} 211}