public void Test3() { int[] input = new int[] { 1, 2, 3 }; CutList.ListNode first = MakeList(input); int[] expected = new int[] { 1, 2, 3 }; CutList.ListNode result = CutList.Solve(first, 10); CollectionAssert.AreEqual(expected, MakeArray(result)); }
public void Test4() { int[] input = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; CutList.ListNode first = MakeList(input); int[] expected = new int[] { 9, 10, 1, 2, 3, 4, 5, 6, 7, 8 }; CutList.ListNode result = CutList.Solve(first, 2); CollectionAssert.AreEqual(expected, MakeArray(result)); }