public void NU_AddPos_AListR(int[] ini, int pos, int val, int size, int[] exp) { AListR list = new AListR(); list.Init(ini); list.AddPos(pos, val); int[] act = list.ToArray(); Assert.AreEqual(size, list.Size()); CollectionAssert.AreEqual(exp, act); }
public void AddPos_AListR() { AListR list = new AListR(); list.Init(new int[] { 0, 1, 2, 4, 5, 6, 7, 8, 9 }); list.AddPos(3, 3); 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); }