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
				);
		}
Exemple #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
                            );
        }
Exemple #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_;
			}