Ejemplo n.º 1
0
 public void MyListAppendFirstTest()
 {
     list = new SinglyLinkedList <int>();
     Assert.AreEqual(0, list.Count);
     list.Add(100);
     Assert.AreEqual(1, list.Count);
     for (int i = 0; i < 10000; ++i)
     {
         list.AppendFirst(i);
     }
     Assert.AreEqual(10001, list.Count);
 }