public void LinkedListTest() { var list = new SinglyLinkedList <IntWrapper>(); var intWrapper = new IntWrapper(1); list.AddToFront(intWrapper); var wrapper = new IntWrapper(2); list.AddToFront(wrapper); Assert.IsTrue(list.Count == 2); Assert.IsTrue(list.IsEmpty() == false); IntWrapper find = list.Find(intWrapper); Assert.IsTrue(find.Equals(intWrapper)); list.Remove(new IntWrapper(2)); Assert.IsTrue(list.Count == 1); Assert.IsTrue(list.IsEmpty() == false); list.AddToFront(new IntWrapper(1)); Assert.IsTrue(list.Count == 2); list.Remove(new IntWrapper(1)); Assert.IsTrue(list.Count == 0); }