summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-18 23:43:09 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-05-23 18:59:26 -0300
commit54f1e56b34e5b8b67161b70b582e54be1fbf5c74 (patch)
treee2873270d4ef751bb5bd07932fcb6f898ef4c121 /src/tests/efl_mono/Eo.cs
parentcfafd01bbe27bab90117e1a8d97fdace55b47944 (diff)
efl_mono: Generate support for accessors in .eos
Summary: Depends on D6190 Reviewers: felipealmeida, vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6191
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}