Last active
September 3, 2019 17:27
-
-
Save normand1/c6890b85f9ff1a6fab41288caa9aaeb6 to your computer and use it in GitHub Desktop.
testInteractorLocationValueChangedUpdatesCityParamsWithValueFromTexField
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func testInteractorLocationValueChangedUpdatesCityParamsWithValueFromTexField() { | |
// Arrange | |
mockVC.stubbedViewModel.locationType = .city | |
textField.text = "NEW CITY" | |
// Act | |
interactor.locationValueChanged(sender: textField, viewController: mockVC) | |
//Assert | |
XCTAssert(mockVC.invokedOpenWeatherRequestParamsSetter) | |
XCTAssertEqual(mockVC.invokedOpenWeatherRequestParamsList.first?.city, "NEW CITY") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment