public void DelStart_AListR() { AListR list = new AListR(); list.Init(new int[] { 0, 1, 2, 3, 4, 5, 6 }); int res = 0; for (int i = 1; i <= 6; ++i) { res = list.DelStart(); } int[] act = list.ToArray(); Assert.AreEqual(5, res); CollectionAssert.AreEqual(new int[] { 6 }, act); }
public void NU_DelStart_AListR(int[] ini, int[] exp, int delVal) { AListR list = new AListR(); list.Init(ini); int res = 0; for (int i = 1; i <= 6; ++i) { res = list.DelStart(); } int[] act = list.ToArray(); Assert.AreEqual(delVal, res); CollectionAssert.AreEqual(exp, act); }