Generic Function

XCTAssertNotEqual(_:_:_:file:line:)

Asserts that two values are not equal.

Declaration

func XCTAssertNotEqual<T>(_ expression1: @autoclosure () throws -> T, _ expression2: @autoclosure () throws -> T, _ message: @autoclosure () -> String = "", file: StaticString = #file, line: UInt = #line) where T : Equatable

Parameters

expression1

An expression of type T, where T is Equatable.

expression2

An expression of type T, where T is Equatable.

message

An optional description of the failure.

file

The file in which failure occurred. Defaults to the file name of the test case in which this function was called.

line

The line number on which failure occurred. Defaults to the line number on which this function was called.

See Also

Testing for Equality and Inequality