public void NU_Init_AListR(int[] ini, int size, int[] exp)
        {
            AListR list = new AListR();

            list.Init(ini);

            int[] act = list.ToArray();

            Assert.AreEqual(size, list.Size());
            CollectionAssert.AreEqual(exp, act);
        }
        public void Init_AListR()
        {
            AListR list = new AListR();

            list.Init(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 });

            int[] act = list.ToArray();
            int[] exp = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

            Assert.AreEqual(11, list.Size());
            CollectionAssert.AreEqual(exp, act);
        }
        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);
        }
        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);
        }
        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);
        }