public void RemoveAt_ItemDeletionAtTheEndDoesNotDisturbArraySequence() { NewList <int> list = new NewList <int> { 1, 2, 3, 4, 5 }; list.RemoveAt(4); NewList <int> secondList = new NewList <int> { 1, 2, 3, 4 }; Assert.Equal(secondList, list); }
public void RemoveAt(int index) { NewList.RemoveAt(index); OriginalList.RemoveAt(index); }