Macro

XCTAssertEqualObjects

Asserts that two objects are considered equal.

Declaration

#define XCTAssertEqualObjects(expression1, expression2, ...)

Parameters

expression1

An expression of id type.

expression2

An expression of id type.

...

An optional description of the failure. A literal NSString, optionally with string format specifiers.

Discussion

Generates a failure when expression1 is not equal to expression2.

See Also

Testing for Equality and Inequality

XCTAssertEqual

Asserts that two expressions have the same value.

XCTAssertNotEqual

Asserts that two expressions do not have the same value.

XCTAssertNotEqualObjects

Asserts that two objects are not considered equal.