Asserts that two objects refer to the same object. If they are not the same an AssertionException is thrown.

Namespace: MbUnit.Framework
Assembly:  MbUnit.Framework (in MbUnit.Framework.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void AreSame(
	Object expected,
	Object actual
)
Public Shared Sub AreSame ( _
	expected As Object, _
	actual As Object _
)
public:
static void AreSame(
	Object^ expected, 
	Object^ actual
)

Parameters

expected
Object
The expected object
actual
Object
The actual object

See Also

Assert Class