public void RemoveObject() { string item1 = "item1"; string item2 = "item2"; string item3 = "item3"; LinkedList ll = new LinkedList(); ll.Add(item1); ll.Add(item2); ll.Add(item3); ll.Remove(item2); Assert.IsTrue(ll.Count == 2, "Expected 2 items not " + ll.Count); Assert.IsTrue(ll[0].Equals("item1"), "Expected first element to be \"item1\" not " + ll[0]); Assert.IsTrue(ll[1].Equals("item3"), "Expected second element to be \"item3\" not " + ll[1]); }