예제 #1
0
        public void TestSingleLinkedList_AppendFirst()
        {
            var list = new SingleLinkedList <int>();

            list.Add(0);

            Assert.IsTrue(list.Count == 1);
            Assert.IsTrue(list[0] == 0);

            list.AppendFirst(17);

            Assert.IsTrue(list.Count == 2);
            Assert.IsTrue(list[0] == 17);
        }