SHARE
TWEET

Untitled

a guest Nov 14th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func test_fetch_photo_fail() {
  2.        
  3.     // Given a failed fetch with a certain failure
  4.     let error = APIError.permissionDenied
  5.    
  6.     // When
  7.     sut.initFetch()
  8.    
  9.     mockAPIService.fetchFail(error: error )
  10.    
  11.     // Sut should display predefined error message
  12.     XCTAssertEqual( sut.alertMessage, error.rawValue )
  13.    
  14. }
RAW Paste Data
Top