public void IndexOf2() { LinkedList list = new LinkedList(); list.Add( "1" ); list.Add( "2" ); list.Add( "3" ); list.Add( "4" ); list.Add( "5" ); Assert.AreEqual( 4, list.IndexOf("5") ); Assert.AreEqual( -1, list.IndexOf("10") ); }