예제 #1
0
        public void CountLinkedList()
        {
            //Arrange
            SingleLinkedList <int> l = new SingleLinkedList <int>();

            l.AddLast(1);
            l.AddLast(2);

            //Act
            var c = l.Count();

            //Assert
            Assert.AreEqual(c, 2);
        }