Пример #1
0
        public void AddLast_Value_Test_True_Int()
        {
            var list = new DoubleCircularLinkedList <int> {
                1, 2, 4
            };
            int cinci = 5;

            list.AddLast(cinci);
            Assert.Equal(5, list.Last.GetData());
        }
Пример #2
0
        public void AddLast_Test_String_True()
        {
            var list = new DoubleCircularLinkedList <string> {
                "a", "b", "c"
            };
            Node <string> last = list.Last;
            Node <string> d    = new Node <string>("d");

            list.AddLast(last, d);
            Assert.Equal("d", list.Last.GetData());
        }