Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Created March 20, 2014 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rob-murray/9660600 to your computer and use it in GitHub Desktop.
Save rob-murray/9660600 to your computer and use it in GitHub Desktop.
XTCTest Assertions
XCTAssert(expression, format...)
XCTAssertEqual(a1, a2, format...)
XCTAssertEqualObjects(a1, a2, format...)
XCTAssertEqualWithAccuracy(a1, a2, accuracy, format...)
XCTAssertFalse(expression, format...)
XCTAssertNotEqual(a1, a2, format...)
XCTAssertNotEqualObjects(a1, a2, format...)
XCTAssertNotEqualWithAccuracy(a1, a2, accuracy, format...)
XCTAssertNoThrow(expression, format...)
XCTAssertNoThrowSpecific(expression, specificException, format...)
XCTAssertNoThrowSpecificNamed(expression, specificException, exception_name, format...)
XCTAssertNotNil(a1, format...)
XCTAssertThrows(expression, format...)
XCTAssertThrowsSpecific(expression, specificException, format...)
XCTAssertThrowsSpecificNamed(expression, specificException, exception_name, format...)
XCTAssertTrue(expression, format...)
XCTFail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment