ICSharpCode.SharpUnit an Unit Testing Framework for .NET

Assertion.AssertSame Method (Object, Object)

Asserts that two objects refer to the same object.

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

Parameters

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