public void AddToFrontTest() { var list = new MyLinkedList <int>(); list.AddToFront(3); list.AddToFront(2); list.AddToFront(1); Assert.Equal(new[] { 1, 2, 3 }, list.ToArray()); }
public void AddToFrontTest() { var list = new MyLinkedList <int>(); list.AddToFront(3); list.AddToFront(2); list.AddToFront(1); Assert.Equal(new[] { 1, 2, 3 }, list.ToArray()); }