public void AListDelStart16Test() { int[] mas = new int[16] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; var a = new AList1<int>(); a.Init(mas); int res = a.DelStart(); int size = a.Size(); Assert.AreEqual(15, size); Assert.AreEqual(1, res); mas = new int[15] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; CollectionAssert.AreEqual(mas, a.ToArray()); }
public void AListDelStart16Test() { var a = new AList1<Person>(); a.Init(mas); Person res = a.DelStart(); int size = a.Size(); Assert.AreEqual(15, size); Assert.AreEqual(res.ToString(), (new Person(1, "rr", "qwer", 22)).ToString()); Assert.AreEqual(a.ToArray().ToString(), mas.ToString()); }