Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void RemoveAt(int index)
 {
     NewList.RemoveAt(index);
     OriginalList.RemoveAt(index);
 }