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(object expected, object actual, string message = null, params object[] args)
Remarks
This overload is used when two different types are compared
or if the compiler can't determine the proper types for
the generic overload.
Parameters
Name | Type | Description |
---|---|---|
expected | object | The expected value |
actual | object | 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 |