Assert.

AreNotEqual<T>(T, T, string, object[]) Method

Summary

Asserts that two instances of a type are not equal. If equal, a TCLite.AssertionException is thrown, ending the test and reporting it as a Failure.
Namespace
TCLite
Containing Type
Assert

Syntax

public static void AreNotEqual<T>(T expected, T actual, string message = null, params object[] args)

Type Parameters

Name Description
T

Parameters

Name Type Description
expected T The expected value
actual T The actual value
message string The message to display in case of failure
args object[] Array of objects to be used in formatting the message

Return Value

Type Description
void