Beispiel #1
0
        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));
        }
Beispiel #2
0
        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);
        }