Summary
Asserts that two references refer to the same instance of
a Type. If not, a TCLite.AssertionException
is thrown,
ending the test and reporting it as a Failure.
Syntax
public static void AreSame<T>(T expected, T actual, string message = null, params object[] args)
where T : class
Type Parameters
Parameters
Name |
Type |
Description |
expected |
T |
The expected object |
actual |
T |
The actual object |
message |
string |
The message to display in case of failure |
args |
object[] |
Array of objects to be used in formatting the message |
Return Value