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