// 26. Добавление списка по индексу public void AddNewListByIndexInList_Tests(int index, int[] list, int[] actualArray, int[] expectedArray) { ArrayList expected = new ArrayList(expectedArray); ArrayList actual = new ArrayList(list); actual.AddNewListByIndexInList(index, actualArray); Assert.AreEqual(expected, actual); }
public void AddNewListByIndexInList_ExceptionTests(int[] array, int[] actualArray, int index) { ArrayList actual = new ArrayList(array); Assert.Throws <IndexOutOfRangeException>(() => actual.AddNewListByIndexInList(index, actualArray)); }