コード例 #1
0
 public void AddsNodeOnTheFirstPosition()
 {
     LinkedList<int> list = new LinkedList<int>() { 1, 2, 3 };
     Assert.Equal(3, list.Count);
     list.AddFirst(4);
     int[] result = new int[] { 4, 1, 2, 3 };
     Assert.Equal(result, list);
 }