public void Find4_123_ReturnsNull() { SingleLinkedList <int> list = new SingleLinkedList <int>(); list.InsertAtEnd(1); list.InsertAtEnd(2); list.InsertAtEnd(3); Cell <int>?cell = list.Find(4); Assert.IsNull(cell); }
public void Find2_123_ReturnsCellWith2() { SingleLinkedList <int> list = new SingleLinkedList <int>(); list.InsertAtEnd(1); list.InsertAtEnd(2); list.InsertAtEnd(3); Cell <int>?cell = list.Find(2); Assert.AreEqual(2, cell?.Value); }