【发布时间】:2015-04-23 23:26:47
【问题描述】:
我被这个错误难住了。
XCTAssertNotNil 自动完成,代码似乎微不足道。
“解析问题”似乎很奇怪,其中有3个。
我尝试显示隐形以找到任何奇怪的空间和东西,但什么也找不到。
我在其他测试中使用 Specta/Xpecta/OCMock。使用 Cocoapods
#import <XCTest/XCTest.h>
@interface SPRecipientDataViewModelTests : XCTestCase
@end
@implementation SPRecipientDataViewModelTests
- (void)testHelloNotNil {
XCTAssertNotNil(@"hello", @"hello is nil");
}
【问题讨论】:
标签: objective-c xctest expected-exception