An expectation that is fulfilled when an NSPredicate is satisfied.
On This Page
init(predicate: NSPredicate, object: Any?)
Creates an expectation that is fulfilled when an NSPredicate instance returns true, optionally for a provided object.
var predicate: NSPredicate
The predicate that is evaluated by the expectation.
var object: Any?
An optional object against which the predicate is evaluated.
var handler: XCTNSPredicateExpectation.Handler?
An optional handler that performs custom evaluation when predicate evaluates as true.
A handler to be called when evaluating the predicate returns true.