Exemple #1
0
        public void AddFirst_Test_String_True()
        {
            var list = new DoubleCircularLinkedList <string> {
                "b", "c", "d"
            };
            Node <string> a = new Node <string>("a");

            list.AddFirst(a);
            Assert.Equal("a", list.First.GetData());
        }
Exemple #2
0
        public void AddFirst_Value_Test_True_Int()
        {
            var list = new DoubleCircularLinkedList <int> {
                1, 2, 4
            };
            int trei = 3;

            list.AddFirst(trei);
            Assert.Equal(3, list.First.GetData());
        }