public void List_RemoveAt_WithInvalidIndex_IsRejected() { var source = new List <int> { 13 }; var list = new ReadWriteList <int>(source); list.RemoveAt(1); }
public void List_RemoveAt_RemovesItem() { var source = new List <int> { 13 }; var list = new ReadWriteList <int>(source); list.RemoveAt(0); Assert.IsTrue(source.SequenceEqual(new int[] { }), "Item should be removed."); }