summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2017-06-19 15:01:12 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 18:34:54 -0300
commite030893c5b6dec4f2bb734fe446059b8eb7cc980 (patch)
treef68f957cf260612d528f5e62167a192a677f7aaa
parent922c3c7e000f3e6187aecd5fbf0aea5ca2d12640 (diff)
eina_mono: rename comparison assert helper
-rw-r--r--src/tests/efl_mono/Eina.cs48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index 5f0c3643da..a2d76810ad 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -73,7 +73,7 @@ public static class BaseData
73 return new test.NumberwrapperConcrete[]{a,b,c,d,e,f}; 73 return new test.NumberwrapperConcrete[]{a,b,c,d,e,f};
74 } 74 }
75 75
76 public static void NumberwrapperArrayAssertEqual( 76 public static void NumberwrapperSequenceAssertEqual(
77 test.Numberwrapper[] a 77 test.Numberwrapper[] a
78 , test.Numberwrapper[] b 78 , test.Numberwrapper[] b
79 , [CallerLineNumber] int line = 0 79 , [CallerLineNumber] int line = 0
@@ -1153,7 +1153,7 @@ class TestEinaArray
1153 arr.Append(BaseArrObj()); 1153 arr.Append(BaseArrObj());
1154 Test.Assert(t.eina_array_obj_in(arr)); 1154 Test.Assert(t.eina_array_obj_in(arr));
1155 Test.Assert(arr.Own); 1155 Test.Assert(arr.Own);
1156 NumberwrapperArrayAssertEqual(arr.ToArray(), ModifiedArrObj()); 1156 NumberwrapperSequenceAssertEqual(arr.ToArray(), ModifiedArrObj());
1157 arr.Dispose(); 1157 arr.Dispose();
1158 Test.Assert(arr.Handle == IntPtr.Zero); 1158 Test.Assert(arr.Handle == IntPtr.Zero);
1159 } 1159 }
@@ -1165,7 +1165,7 @@ class TestEinaArray
1165 arr.Append(BaseArrObj()); 1165 arr.Append(BaseArrObj());
1166 Test.Assert(t.eina_array_obj_in_own(arr)); 1166 Test.Assert(t.eina_array_obj_in_own(arr));
1167 Test.Assert(!arr.Own); 1167 Test.Assert(!arr.Own);
1168 NumberwrapperArrayAssertEqual(arr.ToArray(), ModifiedArrObj()); 1168 NumberwrapperSequenceAssertEqual(arr.ToArray(), ModifiedArrObj());
1169 arr.Dispose(); 1169 arr.Dispose();
1170 Test.Assert(arr.Handle == IntPtr.Zero); 1170 Test.Assert(arr.Handle == IntPtr.Zero);
1171 Test.Assert(t.check_eina_array_obj_in_own()); 1171 Test.Assert(t.check_eina_array_obj_in_own());
@@ -1177,7 +1177,7 @@ class TestEinaArray
1177 eina.Array<test.Numberwrapper> arr; 1177 eina.Array<test.Numberwrapper> arr;
1178 Test.Assert(t.eina_array_obj_out(out arr)); 1178 Test.Assert(t.eina_array_obj_out(out arr));
1179 Test.Assert(!arr.Own); 1179 Test.Assert(!arr.Own);
1180 NumberwrapperArrayAssertEqual(arr.ToArray(), BaseArrObj()); 1180 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1181 Test.Assert(arr.Append(AppendArrObj())); 1181 Test.Assert(arr.Append(AppendArrObj()));
1182 arr.Dispose(); 1182 arr.Dispose();
1183 Test.Assert(arr.Handle == IntPtr.Zero); 1183 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1190,7 +1190,7 @@ class TestEinaArray
1190 eina.Array<test.Numberwrapper> arr; 1190 eina.Array<test.Numberwrapper> arr;
1191 Test.Assert(t.eina_array_obj_out_own(out arr)); 1191 Test.Assert(t.eina_array_obj_out_own(out arr));
1192 Test.Assert(arr.Own); 1192 Test.Assert(arr.Own);
1193 NumberwrapperArrayAssertEqual(arr.ToArray(), BaseArrObj()); 1193 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1194 Test.Assert(arr.Append(AppendArrObj())); 1194 Test.Assert(arr.Append(AppendArrObj()));
1195 arr.Dispose(); 1195 arr.Dispose();
1196 Test.Assert(arr.Handle == IntPtr.Zero); 1196 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1201,7 +1201,7 @@ class TestEinaArray
1201 test.Testing t = new test.TestingConcrete(); 1201 test.Testing t = new test.TestingConcrete();
1202 var arr = t.eina_array_obj_return(); 1202 var arr = t.eina_array_obj_return();
1203 Test.Assert(!arr.Own); 1203 Test.Assert(!arr.Own);
1204 NumberwrapperArrayAssertEqual(arr.ToArray(), BaseArrObj()); 1204 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1205 Test.Assert(arr.Append(AppendArrObj())); 1205 Test.Assert(arr.Append(AppendArrObj()));
1206 arr.Dispose(); 1206 arr.Dispose();
1207 Test.Assert(arr.Handle == IntPtr.Zero); 1207 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1213,7 +1213,7 @@ class TestEinaArray
1213 test.Testing t = new test.TestingConcrete(); 1213 test.Testing t = new test.TestingConcrete();
1214 var arr = t.eina_array_obj_return_own(); 1214 var arr = t.eina_array_obj_return_own();
1215 Test.Assert(arr.Own); 1215 Test.Assert(arr.Own);
1216 NumberwrapperArrayAssertEqual(arr.ToArray(), BaseArrObj()); 1216 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1217 Test.Assert(arr.Append(AppendArrObj())); 1217 Test.Assert(arr.Append(AppendArrObj()));
1218 arr.Dispose(); 1218 arr.Dispose();
1219 Test.Assert(arr.Handle == IntPtr.Zero); 1219 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1226,8 +1226,8 @@ class TestEinaArray
1226 var a = new eina.Array<test.Numberwrapper>(); 1226 var a = new eina.Array<test.Numberwrapper>();
1227 a.Append(cmp); 1227 a.Append(cmp);
1228 var b = t.eina_array_obj_return_in(a); 1228 var b = t.eina_array_obj_return_in(a);
1229 NumberwrapperArrayAssertEqual(a.ToArray(), b.ToArray()); 1229 NumberwrapperSequenceAssertEqual(a.ToArray(), b.ToArray());
1230 NumberwrapperArrayAssertEqual(a.ToArray(), BaseArrObj()); 1230 NumberwrapperSequenceAssertEqual(a.ToArray(), BaseArrObj());
1231 int len = a.Length; 1231 int len = a.Length;
1232 for (int i=0; i < len; ++i) 1232 for (int i=0; i < len; ++i)
1233 { 1233 {
@@ -1671,7 +1671,7 @@ class TestEinaInarray
1671 arr.Append(BaseArrObj()); 1671 arr.Append(BaseArrObj());
1672 Test.Assert(t.eina_inarray_obj_in(arr)); 1672 Test.Assert(t.eina_inarray_obj_in(arr));
1673 Test.Assert(arr.Own); 1673 Test.Assert(arr.Own);
1674 NumberwrapperInarrayAssertEqual(arr.ToArray(), ModifiedArrObj()); 1674 NumberwrapperSequenceAssertEqual(arr.ToArray(), ModifiedArrObj());
1675 arr.Dispose(); 1675 arr.Dispose();
1676 Test.Assert(arr.Handle == IntPtr.Zero); 1676 Test.Assert(arr.Handle == IntPtr.Zero);
1677 } 1677 }
@@ -1683,7 +1683,7 @@ class TestEinaInarray
1683 arr.Append(BaseArrObj()); 1683 arr.Append(BaseArrObj());
1684 Test.Assert(t.eina_inarray_obj_in_own(arr)); 1684 Test.Assert(t.eina_inarray_obj_in_own(arr));
1685 Test.Assert(!arr.Own); 1685 Test.Assert(!arr.Own);
1686 NumberwrapperInarrayAssertEqual(arr.ToArray(), ModifiedArrObj()); 1686 NumberwrapperSequenceAssertEqual(arr.ToArray(), ModifiedArrObj());
1687 arr.Dispose(); 1687 arr.Dispose();
1688 Test.Assert(arr.Handle == IntPtr.Zero); 1688 Test.Assert(arr.Handle == IntPtr.Zero);
1689 Test.Assert(t.check_eina_inarray_obj_in_own()); 1689 Test.Assert(t.check_eina_inarray_obj_in_own());
@@ -1695,7 +1695,7 @@ class TestEinaInarray
1695 eina.Inarray<test.Numberwrapper> arr; 1695 eina.Inarray<test.Numberwrapper> arr;
1696 Test.Assert(t.eina_inarray_obj_out(out arr)); 1696 Test.Assert(t.eina_inarray_obj_out(out arr));
1697 Test.Assert(!arr.Own); 1697 Test.Assert(!arr.Own);
1698 NumberwrapperInarrayAssertEqual(arr.ToArray(), BaseArrObj()); 1698 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1699 Test.Assert(arr.Append(AppendArrObj())); 1699 Test.Assert(arr.Append(AppendArrObj()));
1700 arr.Dispose(); 1700 arr.Dispose();
1701 Test.Assert(arr.Handle == IntPtr.Zero); 1701 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1708,7 +1708,7 @@ class TestEinaInarray
1708 eina.Inarray<test.Numberwrapper> arr; 1708 eina.Inarray<test.Numberwrapper> arr;
1709 Test.Assert(t.eina_inarray_obj_out_own(out arr)); 1709 Test.Assert(t.eina_inarray_obj_out_own(out arr));
1710 Test.Assert(arr.Own); 1710 Test.Assert(arr.Own);
1711 NumberwrapperInarrayAssertEqual(arr.ToArray(), BaseArrObj()); 1711 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1712 Test.Assert(arr.Append(AppendArrObj())); 1712 Test.Assert(arr.Append(AppendArrObj()));
1713 arr.Dispose(); 1713 arr.Dispose();
1714 Test.Assert(arr.Handle == IntPtr.Zero); 1714 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1719,7 +1719,7 @@ class TestEinaInarray
1719 test.Testing t = new test.TestingConcrete(); 1719 test.Testing t = new test.TestingConcrete();
1720 var arr = t.eina_inarray_obj_return(); 1720 var arr = t.eina_inarray_obj_return();
1721 Test.Assert(!arr.Own); 1721 Test.Assert(!arr.Own);
1722 NumberwrapperInarrayAssertEqual(arr.ToArray(), BaseArrObj()); 1722 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1723 Test.Assert(arr.Append(AppendArrObj())); 1723 Test.Assert(arr.Append(AppendArrObj()));
1724 arr.Dispose(); 1724 arr.Dispose();
1725 Test.Assert(arr.Handle == IntPtr.Zero); 1725 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1731,7 +1731,7 @@ class TestEinaInarray
1731 test.Testing t = new test.TestingConcrete(); 1731 test.Testing t = new test.TestingConcrete();
1732 var arr = t.eina_inarray_obj_return_own(); 1732 var arr = t.eina_inarray_obj_return_own();
1733 Test.Assert(arr.Own); 1733 Test.Assert(arr.Own);
1734 NumberwrapperInarrayAssertEqual(arr.ToArray(), BaseArrObj()); 1734 NumberwrapperSequenceAssertEqual(arr.ToArray(), BaseArrObj());
1735 Test.Assert(arr.Append(AppendArrObj())); 1735 Test.Assert(arr.Append(AppendArrObj()));
1736 arr.Dispose(); 1736 arr.Dispose();
1737 Test.Assert(arr.Handle == IntPtr.Zero); 1737 Test.Assert(arr.Handle == IntPtr.Zero);
@@ -1744,8 +1744,8 @@ class TestEinaInarray
1744 var a = new eina.Inarray<test.Numberwrapper>(); 1744 var a = new eina.Inarray<test.Numberwrapper>();
1745 a.Append(cmp); 1745 a.Append(cmp);
1746 var b = t.eina_inarray_obj_return_in(a); 1746 var b = t.eina_inarray_obj_return_in(a);
1747 NumberwrapperInarrayAssertEqual(a.ToArray(), b.ToArray()); 1747 NumberwrapperSequenceAssertEqual(a.ToArray(), b.ToArray());
1748 NumberwrapperInarrayAssertEqual(a.ToArray(), BaseArrObj()); 1748 NumberwrapperSequenceAssertEqual(a.ToArray(), BaseArrObj());
1749 int len = a.Length; 1749 int len = a.Length;
1750 for (int i=0; i < len; ++i) 1750 for (int i=0; i < len; ++i)
1751 { 1751 {
@@ -2233,7 +2233,7 @@ class TestEinaList
2233 lst.AppendArray(BaseArrObj()); 2233 lst.AppendArray(BaseArrObj());
2234 Test.Assert(t.eina_list_obj_in(lst)); 2234 Test.Assert(t.eina_list_obj_in(lst));
2235 Test.Assert(lst.Own); 2235 Test.Assert(lst.Own);
2236 NumberwrapperArrayAssertEqual(lst.ToArray(), BaseArrObj()); 2236 NumberwrapperSequenceAssertEqual(lst.ToArray(), BaseArrObj());
2237 lst.Dispose(); 2237 lst.Dispose();
2238 Test.Assert(lst.Handle == IntPtr.Zero); 2238 Test.Assert(lst.Handle == IntPtr.Zero);
2239 } 2239 }
@@ -2256,7 +2256,7 @@ class TestEinaList
2256 eina.List<test.Numberwrapper> lst; 2256 eina.List<test.Numberwrapper> lst;
2257 Test.Assert(t.eina_list_obj_out(out lst)); 2257 Test.Assert(t.eina_list_obj_out(out lst));
2258 Test.Assert(!lst.Own); 2258 Test.Assert(!lst.Own);
2259 NumberwrapperArrayAssertEqual(lst.ToArray(), BaseArrObj()); 2259 NumberwrapperSequenceAssertEqual(lst.ToArray(), BaseArrObj());
2260 lst.Dispose(); 2260 lst.Dispose();
2261 Test.Assert(lst.Handle == IntPtr.Zero); 2261 Test.Assert(lst.Handle == IntPtr.Zero);
2262 Test.Assert(t.check_eina_list_obj_out()); 2262 Test.Assert(t.check_eina_list_obj_out());
@@ -2268,7 +2268,7 @@ class TestEinaList
2268 eina.List<test.Numberwrapper> lst; 2268 eina.List<test.Numberwrapper> lst;
2269 Test.Assert(t.eina_list_obj_out_own(out lst)); 2269 Test.Assert(t.eina_list_obj_out_own(out lst));
2270 Test.Assert(lst.Own); 2270 Test.Assert(lst.Own);
2271 NumberwrapperArrayAssertEqual(lst.ToArray(), BaseArrObj()); 2271 NumberwrapperSequenceAssertEqual(lst.ToArray(), BaseArrObj());
2272 lst.AppendArray(AppendArrObj()); 2272 lst.AppendArray(AppendArrObj());
2273 lst.Dispose(); 2273 lst.Dispose();
2274 Test.Assert(lst.Handle == IntPtr.Zero); 2274 Test.Assert(lst.Handle == IntPtr.Zero);
@@ -2279,7 +2279,7 @@ class TestEinaList
2279 test.Testing t = new test.TestingConcrete(); 2279 test.Testing t = new test.TestingConcrete();
2280 var lst = t.eina_list_obj_return(); 2280 var lst = t.eina_list_obj_return();
2281 Test.Assert(!lst.Own); 2281 Test.Assert(!lst.Own);
2282 NumberwrapperArrayAssertEqual(lst.ToArray(), BaseArrObj()); 2282 NumberwrapperSequenceAssertEqual(lst.ToArray(), BaseArrObj());
2283 lst.Dispose(); 2283 lst.Dispose();
2284 Test.Assert(lst.Handle == IntPtr.Zero); 2284 Test.Assert(lst.Handle == IntPtr.Zero);
2285 Test.Assert(t.check_eina_list_obj_return()); 2285 Test.Assert(t.check_eina_list_obj_return());
@@ -2290,7 +2290,7 @@ class TestEinaList
2290 test.Testing t = new test.TestingConcrete(); 2290 test.Testing t = new test.TestingConcrete();
2291 var lst = t.eina_list_obj_return_own(); 2291 var lst = t.eina_list_obj_return_own();
2292 Test.Assert(lst.Own); 2292 Test.Assert(lst.Own);
2293 NumberwrapperArrayAssertEqual(lst.ToArray(), BaseArrObj()); 2293 NumberwrapperSequenceAssertEqual(lst.ToArray(), BaseArrObj());
2294 lst.AppendArray(AppendArrObj()); 2294 lst.AppendArray(AppendArrObj());
2295 lst.Dispose(); 2295 lst.Dispose();
2296 Test.Assert(lst.Handle == IntPtr.Zero); 2296 Test.Assert(lst.Handle == IntPtr.Zero);
@@ -2303,8 +2303,8 @@ class TestEinaList
2303 var a = new eina.List<test.Numberwrapper>(); 2303 var a = new eina.List<test.Numberwrapper>();
2304 a.AppendArray(cmp); 2304 a.AppendArray(cmp);
2305 var b = t.eina_list_obj_return_in(a); 2305 var b = t.eina_list_obj_return_in(a);
2306 NumberwrapperArrayAssertEqual(a.ToArray(), b.ToArray()); 2306 NumberwrapperSequenceAssertEqual(a.ToArray(), b.ToArray());
2307 NumberwrapperArrayAssertEqual(a.ToArray(), BaseArrObj()); 2307 NumberwrapperSequenceAssertEqual(a.ToArray(), BaseArrObj());
2308 int len = a.Length; 2308 int len = a.Length;
2309 for (int i=0; i < len; ++i) 2309 for (int i=0; i < len; ++i)
2310 { 2310 {