Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func test_fetch_photo_fail() {
- // Given a failed fetch with a certain failure
- let error = APIError.permissionDenied
- // When
- sut.initFetch()
- mockAPIService.fetchFail(error: error )
- // Sut should display predefined error message
- XCTAssertEqual( sut.alertMessage, error.rawValue )
- }
Add Comment
Please, Sign In to add comment