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()); }
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()); }