An expected outcome in an asynchronous test.
On This Page
class XCTestExpectation : NSObject
Creates a new XCTestExpectation with the provided description.
var expectationDescription: String
A human readable string used to describe the expectation in log output and test reports.
Marks the expectation as having been met.
var expectedFulfillmentCount: Int
The number of times fulfill() must be called before the expectation is completely fulfilled.
var assertForOverFulfill: Bool
Indicates that an assertion should be triggered during testing if the expectation is over-fulfilled.
var isInverted: Bool
Indicates that the expectation is not intended to happen.
Verify that asynchronous operations behave as expected.