Created
August 8, 2015 00:33
-
-
Save pangers/04dc301595fb5f3396e2 to your computer and use it in GitHub Desktop.
This file contains 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
class AsynchronousTesting: XCTestCase { | |
var clientManager: APIManager! | |
func setUp() { | |
clientManager = APIManager() | |
} | |
func testLongOperationWrongly() { | |
var users: [Users] = [] | |
clientManager.getListOfUsers { incomingUsers, error in | |
if error == nil { | |
users = incomingUsers | |
} | |
} | |
XCTAssert(users.count > 0, "Users returned should always be greater than zero") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment