Ejemplo n.º 1
0
        public void AddByIndex_WhenListAndIndexPassed_ThenAddListByIndex(int[] actualArray, int index, int[] arrayForList, int[] expectedArray)
        {
            MyArrayList actual            = new MyArrayList(actualArray);
            MyArrayList list              = new MyArrayList(arrayForList);
            MyArrayList expectedArrayList = new MyArrayList(expectedArray);

            actual.AddListByIndex(list, index);

            Assert.AreEqual(expectedArrayList, actual);
        }