コード例 #1
0
        /// <exception cref="System.Exception"></exception>
        protected override object CreateItem()
        {
            TALinkedListItem item = new TALinkedListItem();

            item.list = NewList();
            return(item);
        }
コード例 #2
0
        /// <exception cref="System.Exception"></exception>
        public virtual void TestDeactivateDepth()
        {
            TALinkedListItem item  = (TALinkedListItem)RetrieveOnlyInstance();
            TALinkedList     list  = item.List();
            TALinkedList     next3 = list.NextN(3);
            TALinkedList     next5 = list.NextN(5);

            Assert.IsNotNull(next3.Next());
            Assert.IsNotNull(next5.Next());
            Db().Deactivate(list, 4);
            Assert.IsNull(list.next);
            Assert.AreEqual(0, list.value);
            // FIXME: test fails if uncomenting the following assertion.
            //	        Assert.isNull(next3.next);
            Assert.IsNotNull(next5.next);
        }
コード例 #3
0
ファイル: TALinkedListTestCase.cs プロジェクト: erdincay/db4o
		/// <exception cref="System.Exception"></exception>
		protected override object CreateItem()
		{
			TALinkedListItem item = new TALinkedListItem();
			item.list = NewList();
			return item;
		}
コード例 #4
0
        /// <exception cref="System.Exception"></exception>
        protected override void AssertItemValue(object obj)
        {
            TALinkedListItem item = (TALinkedListItem)obj;

            Assert.AreEqual(NewList(), item.List());
        }