Пример #1
0
        public void EmptyAtStart()
        {
            linklist.Clear();

            Assert.AreEqual(0, linklist.Count);
        }
        public void Clear()
        {
            DLinkedList<string> list = new DLinkedList<string>();
            
            list.PushBack("a");
            list.PushBack("b");
            list.PushBack("c");
            list.PushBack("d");
            list.PushBack("e");
            list.PushBack("f");
            list.Clear();

            Assert.IsTrue(list.IsEmpty());
        }