public void Test_GenericLinkedList_Method_CompareTo() { GenericLinkedList <string> linkedList1 = new GenericLinkedList <string>(); GenericLinkedList <string> linkedList2 = new GenericLinkedList <string>(); linkedList1.PushLast("Cat"); linkedList2.PushLast("Cat"); int compareValue = linkedList1.CompareTo(linkedList2); Assert.AreEqual(0, compareValue); linkedList2.PushLast("Dog"); compareValue = linkedList1.CompareTo(linkedList2); Assert.AreEqual(-1, compareValue); compareValue = linkedList2.CompareTo(linkedList1); Assert.AreEqual(1, compareValue); }