/// <exception cref="System.Exception"></exception> protected override object CreateItem() { TALinkedListItem item = new TALinkedListItem(); item.list = NewList(); return(item); }
/// <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); }
/// <exception cref="System.Exception"></exception> protected override object CreateItem() { TALinkedListItem item = new TALinkedListItem(); item.list = NewList(); return item; }
/// <exception cref="System.Exception"></exception> protected override void AssertItemValue(object obj) { TALinkedListItem item = (TALinkedListItem)obj; Assert.AreEqual(NewList(), item.List()); }