Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void DeleteFromBiginningTest(int[] array, int[] expectedArray)
        {
            DLinkedList actual   = new DLinkedList(array);
            DLinkedList expected = new DLinkedList(expectedArray);

            actual.DeleteFromBiginning();
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void DeleteNElementsFromBiginningNegativeTest(int[] array, int number)
        {
            DLinkedList actual = new DLinkedList(array);

            Assert.Throws <ArgumentOutOfRangeException>(() => actual.DeleteFromBiginning(number));
        }