Assert.

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

Summary

Asserts that two references do not refer to the same instance. If they do, a TCLite.AssertionException is thrown, ending the test and reporting it as a Failure.
Namespace
TCLite
Containing Type
Assert

Syntax

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

Type Parameters

Name Description
T

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

Type Description
void