summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index db89fb8c4f..997876b52f 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -1,4 +1,5 @@
1using System; 1using System;
2using System.Linq;
2 3
3namespace TestSuite 4namespace TestSuite
4{ 5{
@@ -224,4 +225,25 @@ class TestTypedefs
224 } 225 }
225} 226}
226 227
228class TestEoAccessors
229{
230 public static void basic_eo_accessors()
231 {
232 test.ITesting obj = new test.Testing();
233 eina.List<int> lst = new eina.List<int>();
234 lst.Append(4);
235 lst.Append(3);
236 lst.Append(2);
237 lst.Append(5);
238 eina.Accessor<int> acc = obj.CloneAccessor(lst.GetAccessor());
239
240 var zipped = acc.Zip(lst, (first, second) => new Tuple<int, int>(first, second));
241
242 foreach(Tuple<int, int> pair in zipped)
243 {
244 Test.AssertEquals(pair.Item1, pair.Item2);
245 }
246 }
247}
248
227} 249}