public void RemoveAtForSeveralElementsTest() { var list = new ListOnGenerics <int>(); list.Insert(0, 32); list.Insert(1, 48); list.Insert(1, 5); list.RemoveAt(1); Assert.AreEqual(48, list[1]); Assert.AreEqual(2, list.Count); }
public void InsertForSeveralElementTest() { var list = new ListOnGenerics <int>(); list.Insert(0, 32); list.Insert(1, 48); list.Insert(1, 5); Assert.AreEqual(32, list[0]); Assert.AreEqual(5, list[1]); Assert.AreEqual(48, list[2]); }
public void InsertForOneElementTest() { var list = new ListOnGenerics <int>(); list.Insert(0, 32); Assert.AreEqual(32, list[0]); }