Пример #1
0
        public static void basic_eo_accessors()
        {
            test.ITesting   obj = new test.Testing();
            eina.List <int> lst = new eina.List <int>();
            lst.Append(4);
            lst.Append(3);
            lst.Append(2);
            lst.Append(5);
            eina.Accessor <int> acc = obj.CloneAccessor(lst.GetAccessor());

            var zipped = acc.Zip(lst, (first, second) => new Tuple <int, int>(first, second));

            foreach (Tuple <int, int> pair in zipped)
            {
                Test.AssertEquals(pair.Item1, pair.Item2);
            }
        }