public void DeleteNElementsFromBiginning(int[] array, int number, int[] expectedArray) { DLinkedList actual = new DLinkedList(array); DLinkedList expected = new DLinkedList(expectedArray); actual.DeleteFromBiginning(number); Assert.AreEqual(expected, actual); }
public void DeleteFromBiginningTest(int[] array, int[] expectedArray) { DLinkedList actual = new DLinkedList(array); DLinkedList expected = new DLinkedList(expectedArray); actual.DeleteFromBiginning(); Assert.AreEqual(expected, actual); }
public void DeleteNElementsFromBiginningNegativeTest(int[] array, int number) { DLinkedList actual = new DLinkedList(array); Assert.Throws <ArgumentOutOfRangeException>(() => actual.DeleteFromBiginning(number)); }