summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/EoConstruction.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efl_mono/EoConstruction.cs')
-rw-r--r--src/tests/efl_mono/EoConstruction.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tests/efl_mono/EoConstruction.cs b/src/tests/efl_mono/EoConstruction.cs
index 4708bef..bfcf40b 100644
--- a/src/tests/efl_mono/EoConstruction.cs
+++ b/src/tests/efl_mono/EoConstruction.cs
@@ -27,9 +27,10 @@ class InheritedConstructibleObject : Dummy.ConstructibleObject
27 public int DefaultConstrutorCallCount { get; set; } = 0; 27 public int DefaultConstrutorCallCount { get; set; } = 0;
28 public int SpecialConstrutorCallCount { get; set; } = 0; 28 public int SpecialConstrutorCallCount { get; set; } = 0;
29 29
30 public bool InheritedFlag 30 /// <summary>Pointer to the native class description.</summary>
31 public bool IsInheritedClass
31 { 32 {
32 get { return inherited; } 33 get { return !this.IsGeneratedBindingClass; }
33 } 34 }
34 35
35 public override int MultiplyIntegerValue(int v) 36 public override int MultiplyIntegerValue(int v)
@@ -56,7 +57,7 @@ class TestEoConstruction
56 public static void TestInheritedEoDirectConstruction() 57 public static void TestInheritedEoDirectConstruction()
57 { 58 {
58 var obj = new InheritedConstructibleObject(); 59 var obj = new InheritedConstructibleObject();
59 Test.AssertEquals(obj.InheritedFlag, true); 60 Test.AssertEquals(obj.IsInheritedClass, true);
60 Test.AssertEquals(obj.NativeConstructionCount, 1); 61 Test.AssertEquals(obj.NativeConstructionCount, 1);
61 Test.AssertEquals(obj.DefaultConstructionCount, 1); 62 Test.AssertEquals(obj.DefaultConstructionCount, 1);
62 Test.AssertEquals(obj.SpecialConstructionCount, 0); 63 Test.AssertEquals(obj.SpecialConstructionCount, 0);
@@ -75,7 +76,7 @@ class TestEoConstruction
75 Test.AssertEquals(obj.MultiplyIntegerValue(21), 42); 76 Test.AssertEquals(obj.MultiplyIntegerValue(21), 42);
76 77
77 var obj2 = (InheritedConstructibleObject) obj.ConstructTypeAndStore(typeof(InheritedConstructibleObject)); 78 var obj2 = (InheritedConstructibleObject) obj.ConstructTypeAndStore(typeof(InheritedConstructibleObject));
78 Test.AssertEquals(obj2.InheritedFlag, true); 79 Test.AssertEquals(obj2.IsInheritedClass, true);
79 Test.AssertEquals(obj2.NativeConstructionCount, 1); 80 Test.AssertEquals(obj2.NativeConstructionCount, 1);
80 Test.AssertEquals(obj2.DefaultConstructionCount, 0); 81 Test.AssertEquals(obj2.DefaultConstructionCount, 0);
81 Test.AssertEquals(obj2.SpecialConstructionCount, 1); 82 Test.AssertEquals(obj2.SpecialConstructionCount, 1);