コード例 #1
0
        public void TestFremTilbage()
        {
            MyLinkedList l1 = new MyLinkedList();

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