public void DeleteByIndexNElementNegativTests(int[] array, int index, int value, int[] expArray) { DoubleLList expected = new DoubleLList(expArray); DoubleLList actual = new DoubleLList(array); Assert.Throws <IndexOutOfRangeException>(() => actual.DeleteByIndexNElement(index, value)); }
public void DeleteByIndexNElementTest(int[] array, int index, int size, int[] expArray) { DoubleLList expected = new DoubleLList(expArray); DoubleLList actual = new DoubleLList(array); actual.DeleteByIndexNElement(index, size); Assert.AreEqual(expected, actual); }