Esempio n. 1
0
        public void TestRervers()
        {
            MyLinkedList l1 = new MyLinkedList();

            l1.Insert(c1);
            l1.Insert(c2);
            l1.Insert(c3);
            l1.Reverse();
            Assert.AreEqual(3, l1.Count);
            Assert.AreEqual("3 Cristian Nielsen 20\n2 Bjørn Borg 30\n1 Anders And 15\n", l1.ToString());
        }