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
secondsSeconds until the expectations will time-out.
replyClosure for encapsulating asynchronous tests into transactions, the parameter of the clousre is callback for returning the result of the asynchronous operation.
XCTestCase Extension Reference