public virtual void Test()
		{
			SecondLevelIndexTestCase.Item itemOne = new SecondLevelIndexTestCase.Item("one");
			SecondLevelIndexTestCase.Item itemTwo = new SecondLevelIndexTestCase.Item("two");
			Store(new SecondLevelIndexTestCase.ItemPair(itemOne, itemTwo));
			IQuery query = NewQuery(typeof(SecondLevelIndexTestCase.ItemPair));
			query.Descend("item2").Descend("name").Constrain("two");
			IObjectSet objectSet = query.Execute();
			Assert.AreEqual(((SecondLevelIndexTestCase.ItemPair)objectSet.Next()).item1, itemOne
				);
		}
Пример #2
0
        public virtual void Test()
        {
            SecondLevelIndexTestCase.Item itemOne = new SecondLevelIndexTestCase.Item("one");
            SecondLevelIndexTestCase.Item itemTwo = new SecondLevelIndexTestCase.Item("two");
            Store(new SecondLevelIndexTestCase.ItemPair(itemOne, itemTwo));
            IQuery query = NewQuery(typeof(SecondLevelIndexTestCase.ItemPair));

            query.Descend("item2").Descend("name").Constrain("two");
            IObjectSet objectSet = query.Execute();

            Assert.AreEqual(((SecondLevelIndexTestCase.ItemPair)objectSet.Next()).item1, itemOne
                            );
        }
Пример #3
0
 public ItemPair(SecondLevelIndexTestCase.Item item_, SecondLevelIndexTestCase.Item
                 item2_)
 {
     item1 = item_;
     item2 = item2_;
 }
			public ItemPair(SecondLevelIndexTestCase.Item item_, SecondLevelIndexTestCase.Item
				 item2_)
			{
				item1 = item_;
				item2 = item2_;
			}