public void RemoveDuplicates_71554887_71548() { SingleLinkedList <int> list = new SingleLinkedList <int>(); list.InsertAtEnd(7); list.InsertAtEnd(1); list.InsertAtEnd(5); list.InsertAtEnd(5); list.InsertAtEnd(4); list.InsertAtEnd(8); list.InsertAtEnd(8); list.InsertAtEnd(7); var cleared = list.RemoveDuplicates(); int[] numbers = cleared.ToArray(); Assert.AreEqual(new int[] { 7, 1, 5, 4, 8 }, numbers); }