Assert.

AreEqual<T1, T2>(T1, T2, string, object[]) Method

Summary

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

Syntax

public static void AreEqual<T1, T2>(T1 expected, T2 actual, string message = null, params object[] args)

Type Parameters

Name Description
T1
T2

Parameters

Name Type Description
expected T1 The expected value
actual T2 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