public void Perf_Test_ExtraArray() { int[] input = new[] { 200, 20, 1130, 1270, 990, 1430, 1600, 1660, 2680, 2080, 1980, 2740, 2700, 2670, 1960, 1790, 2570, 270, 1980, 1020, 2530, 2770, 2250, 2090, 250, 2340, 380, 660, 540, 2520, 1820, 980, 1910, 2270, 980, 10, 2790, 1290, 1040, 1580, 910, 1160, 440, 570, 570, 2520, 480, 420, 1280, 1930 }; ISolution solution = new ExtraArraySolution(); solution.Rotate(input, 20); }
public void Test_ExtraArraySolution(int[] input, int k, int[] expectedOutput) { ISolution solution = new ExtraArraySolution(); solution.Rotate(input, k); input.Should().Equal(expectedOutput); }