public void PopBackNegativTests(int[] array, int[] expArray, int size = 1) { ArrayMyList expected = new ArrayMyList(expArray); ArrayMyList actual = new ArrayMyList(array); Assert.Throws <IndexOutOfRangeException>(() => actual.PopBack(size)); }
public void Pop_BackTests(int[] array, int[] expArray, int size = 1) { ArrayMyList expected = new ArrayMyList(expArray); ArrayMyList actual = new ArrayMyList(array); actual.PopBack(size); Assert.AreEqual(expected, actual); }