public void TestQueryOnArrayListContains()
        {
            var q = NewQuery(typeof (ArrayListPerson));
            q.Descend("Names").Constrain("Biro").Contains();

            var persons = new ObjectSetWrapper<Person>(q.Execute());

            AssertSet(new[]
            {
                new ArrayListPerson {Names = {"Biro", "Biro"}},
                new ArrayListPerson {Names = {"Biro", "Miro"}}
            }, persons);
        }
Exemple #2
0
        public void TestQueryOnArrayContains()
        {
            var q = NewQuery(typeof(ArrayPerson));

            q.Descend("Names").Constrain("Biro");

            var persons = new ObjectSetWrapper <Person>(q.Execute());

            AssertSet(new[]
            {
                new ArrayPerson {
                    Names = new [] { "Biro", "Biro" }
                },
                new ArrayPerson {
                    Names = new [] { "Biro", "Miro" }
                },
            }, persons);
        }