iOS单元测试方法

2016-12-06  本文已影响15人  MonkeyBread
XCTFail(format…) 
XCTAssertNil(a1, format...)
XCTAssertNotNil(a1, format…)
XCTAssert(expression, format...)
XCTAssertTrue(expression, format...)
XCTAssertFalse(expression, format...)
XCTAssertEqualObjects(a1, a2, format...)
XCTAssertNotEqualObjects(a1, a2, format...)
XCTAssertEqual(a1, a2, format...)
XCTAssertNotEqual(a1, a2, format...)
XCTAssertEqualWithAccuracy(a1, a2, accuracy, format...)
XCTAssertNotEqualWithAccuracy(a1, a2, accuracy, format...) 
XCTAssertThrows(expression, format...)
XCTAssertThrowsSpecific(expression, specificException, format...) 
XCTAssertThrowsSpecificNamed(expression, specificException, exception_name, format...)
XCTAssertNoThrow(expression, format…)
XCTAssertNoThrowSpecific(expression, specificException, format...)
XCTAssertNoThrowSpecificNamed(expression, specificException, exception_name, format...)
上一篇下一篇

猜你喜欢

热点阅读