ios单元测试工程建立
{
NSString *string1 = @"a string";
GHTestLog(@"I can log to the GHUnit test console: %@", string1); // Assert string1 is not NULL, with no custom error description GHAssertNotNULL(string1, nil);
// Assert equal objects, add custom error description NSString *string2 = @"a string";
GHAssertEqualObjects(string1, string2, @"A custom error message. string1 should be equal to: %@.", string2); } @end
然后编译运行,点击 Run,效果如下:
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库ios单元测试工程建立(8)在线全文阅读。
相关推荐: