Macro

XCTAssertNotEqual

Asserts that two expressions do not have the same value.

Declaration

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

Parameters

expression1

An expression of C scalar type.

expression2

An expression of C scalar type.

...

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

Discussion

Generates a failure when expression1 == expression2.

See Also

Testing for Equality and Inequality

XCTAssertEqual

Asserts that two expressions have the same value.

XCTAssertEqualObjects

Asserts that two objects are considered equal.

XCTAssertNotEqualObjects

Asserts that two objects are not considered equal.