XCTestCase
public extension XCTestCase
-
Executes new asynchronous test using expectation and encapsulates the operation into transaction inside a closure.
Declaration
Swift
func expect( within seconds: TimeInterval, reply: @escaping (@escaping (Result<Void, Error>) -> Void) -> Void )
Parameters
seconds
Seconds until the expectations will time-out.
reply
Closure for encapsulating asynchronous tests into transactions, the parameter of the clousre is callback for returning the result of the asynchronous operation.