Beispiel #1
0
        public void TestMethod12()
        {
            DNode head = null;

            head = DoublyLinkedListOps.AddTail(head, 1);
            head = DoublyLinkedListOps.DeleteFirstOf(head, 1);
            Assert.IsNull(head);
        }
Beispiel #2
0
        public void TestMethod14()
        {
            DNode head = null;

            head = DoublyLinkedListOps.AddTail(head, 1);
            head = DoublyLinkedListOps.AddTail(head, 2);
            head = DoublyLinkedListOps.DeleteFirstOf(head, 2);

            ValidateList(head, new List <int> {
                1
            });
        }