public void AddNewNodeTest() { SingleLinkedList target = new SingleLinkedList(); string n = "Arthur"; target.AddNewNode(n); Assert.AreEqual(n, target.head.next.Name); }
public void RemoveNodeTest() { SingleLinkedList target = new SingleLinkedList(); string n = "Arthur"; target.AddNewNode(n); target.RemoveNode(n); Assert.IsNull(target.head.next); }
public void FindNodeTest() { SingleLinkedList target = new SingleLinkedList(); string n = "Arthur"; bool expected = true; bool actual; target.AddNewNode(n); actual = target.FindNode(n); Assert.AreEqual(expected, actual); }