public void FindPairWithGivenSum_WhenArrayContainsValidSum_ReturnsTrue() { //Arrange ArrayRotation arrayRotation = new ArrayRotation(); int[] inputArray = new int[6] { 11, 15, 6, 8, 9, 10 }; //Act var output = arrayRotation.FindPairWithGivenSum(inputArray, 19); //Assert Assert.IsTrue(output); }
public void FindPairWithGivenSum_WhenArrayDoesNotContainSum_ReturnsFalse() { //Arrange ArrayRotation arrayRotation = new ArrayRotation(); int[] inputArray = new int[6] { 11, 15, 6, 8, 9, 10 }; //Act var output = arrayRotation.FindPairWithGivenSum(inputArray, 120); //Assert Assert.IsFalse(output); }