One Quickie


XCTest Macros (Xcode->Tools)
Quick list of Xcode unit testing assert macros.
XCTAssertNil (expression, ...)
XCTAssertNotNil (expression, ...)

XCTAssert (expression, ...)
XCTAssertTrue (expression, ...)
XCTAssertFalse (expression, ...)

XCTAssertEqualObjects (expression1, expression2, ...)
XCTAssertNotEqualObjects (expression1, expression2, ...)

XCTAssertEqual (expression1, expression2, ...)
XCTAssertNotEqual (expression1, expression2, ...)

XCTAssertEqualWithAccuracy (expression1, expression2, accuracy, ...)
XCTAssertNotEqualWithAccuracy (expression1, expression2, accuracy, ...)

XCTAssertGreaterThan (expression1, expression2, ...)
XCTAssertGreaterThanOrEqual (expression1, expression2, ...)
XCTAssertLessThan (expression1, expression2, ...)
XCTAssertLessThanOrEqual (expression1, expression2, ...)

XCTAssertThrows (expression, ...)
XCTAssertThrowsSpecific (expression, exception_class, ...)
XCTAssertThrowsSpecificNamed (expression, exception_class, exception_name, ...)

XCTAssertNoThrow (expression, ...)
XCTAssertNoThrowSpecific (expression, exception_class, ...)
XCTAssertNoThrowSpecificNamed (expression, exception_class, exception_name, ...)



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com