#import #import NS_ASSUME_NONNULL_BEGIN // Use to catch or log assertions that occur in dispatch blocks, timers or // other asynchronous operations. @interface MGLTestAssertionHandler : NSAssertionHandler - (instancetype)initWithTestCase:(XCTestCase *)testCase; @property (nonatomic, weak) XCTestCase *testCase; // If YES, use `_XCTPreformattedFailureHandler` to "fail" the test, // otherwise log the assert. @property (nonatomic) BOOL shouldFail; @end NS_ASSUME_NONNULL_END