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); }
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); }