public void PopFrontNegativTests(int[] array, int[] expArray, int size = 1) { ArrayMyList expected = new ArrayMyList(expArray); ArrayMyList actual = new ArrayMyList(array); Assert.Throws <IndexOutOfRangeException>(() => actual.PopFront(size)); }
public void Pop_FrontTests(int[] array, int[] expArray, int number = 1) { ArrayMyList expected = new ArrayMyList(expArray); ArrayMyList actual = new ArrayMyList(array); actual.PopFront(number); Assert.AreEqual(expected, actual); }