public void NU_AddEnd_AListR(int[] ini, int val, int size, int[] exp) { AListR list = new AListR(); list.Init(ini); list.AddEnd(val); int[] act = list.ToArray(); Assert.AreEqual(size, list.Size()); CollectionAssert.AreEqual(exp, act); }
public void AddEnd_AListR() { AListR list = new AListR(); list.Init(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8 }); list.AddEnd(9); int[] act = list.ToArray(); int[] exp = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; Assert.AreEqual(10, list.Size()); CollectionAssert.AreEqual(exp, act); }