public void RotateArray(int[] source, int rotations, int[] expectedResult) { var target = new RotateArray(); var result = target.solution(source, rotations); Assert.AreEqual(expectedResult.Length, result.Length); for (int i = 0; i < expectedResult.Length; i++) { Assert.AreEqual(expectedResult[i], result[i]); } }