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.
Syntax
public static void AreEqual<T1, T2>(T1 expected, T2 actual, string message = null, params object[] args)
Type Parameters
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