public void RemoveNode_ReturnCountTrue(int value, int expected) { _twoLinkedList.AddNode(value); Node test = _twoLinkedList.FindNode(value); _twoLinkedList.RemoveNode(test); int actual = _twoLinkedList.GetCount(); Assert.AreEqual(expected, actual); }
public void RemoveNodeByIndex_Test() { list.AddNodeAfter(list.FindNode(1), 666); list.RemoveNode(2); int actual = list.Tail.PrevNode.Value; int expected = 666; Assert.AreEqual(expected, actual); }