Пример #1
0
        public void TestCollect()
        {
            object[] items = _list.Collect(new Predicate(NameStartsWithX));
            AssertNotNull(items);
            AssertEquals(0, items.Length);

            items = _list.Collect(new Predicate(NameStartsWithP));
            AssertNotNull(items);
            AssertEquals(1, items.Length);
            AssertSame(_customer2, items[0]);
        }