Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
19 lines
524 B
Objective-C
19 lines
524 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <XCTest/XCTest.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// Use to catch or log assertions that occur in dispatch blocks, timers or
|
|
// other asynchronous operations.
|
|
@interface MLNTestAssertionHandler : 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
|