public void NU_DelPos_AListR(int[] ini, int pos, int delVal, int[] exp) { AListR list = new AListR(); list.Init(ini); int res = list.DelPos(pos); int[] act = list.ToArray(); Assert.AreEqual(delVal, res); CollectionAssert.AreEqual(exp, act); }
public void DelPos_Overlapped_AListR() { AListR list = new AListR(); list.Init(new int[] { 1, 6, 7, 4, 2, 1 }); int res = list.DelPos(3); int[] act = list.ToArray(); int[] exp = new int[] { 1, 6, 7, 2, 1 }; Assert.AreEqual(4, res); CollectionAssert.AreEqual(exp, act); }