Instance Property

inverted

Indicates that the expectation is not intended to happen.

Declaration

@property(getter=isInverted) BOOL inverted;

Discussion

To check that a situation does not occur during testing, create an expectation that is fulfilled when the unexpected situation occurs, and set its inverted property to true. Your test will fail immediately if the inverted expectation is fulfilled.