|
@@ -45,7 +45,9 @@
|
45
|
45
|
|
46
|
46
|
for (NSString* methodName in methods) {
|
47
|
47
|
SEL s = NSSelectorFromString(methodName);
|
48
|
|
- XCTAssertThrowsSpecificNamed([uut performSelector:s withObject:nil], NSException, @"BridgeNotLoadedError");
|
|
48
|
+ IMP imp = [uut methodForSelector:s];
|
|
49
|
+ void (*func)(id, SEL) = (void *)imp;
|
|
50
|
+ XCTAssertThrowsSpecificNamed(func(uut,s), NSException, @"BridgeNotLoadedError");
|
49
|
51
|
}
|
50
|
52
|
}
|
51
|
53
|
|