public void RotateArrayKTimesToTheLeftShouldRotateArrayCorrectly_Testcase_3() { // Arrange var inputArray = new int[] { 3, 8, 15, 56, 98 }; int kTimes = 5; // Act var rotatedArray = RotateArrayKTimes.RotateLeft(inputArray, kTimes); // Assert CollectionAssert.AreEqual(new int[] { 3, 8, 15, 56, 98 }, rotatedArray); }
public void RotateArrayKTimesToTheRightShouldRotateArrayCorrectly_Testcase_4() { // Arrange var inputArray = new int[] { }; int kTimes = 1; // Act var rotatedArray = RotateArrayKTimes.RotateRight(inputArray, kTimes); // Assert CollectionAssert.AreEqual(new int[] { }, rotatedArray); }