示例#1
0
        public void AddAt1Test(int index, int[] arr, int[] vals, int[] expected)
        {
            DoubleLinkedList1 list = new DoubleLinkedList1(arr);

            list.AddAt(index, vals);
            int[] actualArr = list.ToArray();
            Assert.AreEqual(expected, actualArr);
        }
示例#2
0
        public void AddAtTest(int[] enter, int index, int value, int[] expected)
        {
            DoubleLinkedList1 list = new DoubleLinkedList1(enter);

            list.AddAt(index, value);
            int[] actualArr = list.ToArray();
            Assert.AreEqual(expected, actualArr);
        }