示例#1
0
		private void StoreItem(object listElement)
		{
			SimpleListQueryTestCase.Item item = new SimpleListQueryTestCase.Item();
			item.list = new ArrayList();
			item.list.Add(listElement);
			Store(item);
		}
 private void StoreItem(object listElement)
 {
     SimpleListQueryTestCase.Item item = new SimpleListQueryTestCase.Item();
     item.list = new ArrayList();
     item.list.Add(listElement);
     Store(item);
 }
        private void AssertSingleElementQueryResult(IQuery query, object element)
        {
            IObjectSet objectSet = query.Execute();

            Assert.AreEqual(1, objectSet.Count);
            SimpleListQueryTestCase.Item item = (SimpleListQueryTestCase.Item)objectSet.Next(
                );
            Assert.AreEqual(element, item.list[0]);
        }