ICSharpCode.SharpUnit an Unit Testing Framework for .NET

Assertion.AssertSame Method (String, Object, Object)

Asserts that two objects refer to the same object.

public static void AssertSame(
   string message,
   object expected,
   object current
);

Parameters

message
The message to display if the two objects don't refer to the same object
expected
The expected value
current
The current value

Exceptions

Exception TypeCondition
AssertionFailedException thrown if excepted and current don't refer to the same object.

See Also

Assertion Class | Assertion Members | ICSharpCode.SharpUnit Namespace | Assertion.AssertSame Overload List