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,
	string format,
	Object[] args
)
Public Shared Sub AreSame ( _
	expected As Object, _
	actual As Object, _
	format As String, _
	args As Object() _
)
public:
static void AreSame(
	Object^ expected, 
	Object^ actual, 
	String^ format, 
	array<Object^>^ args
)

Parameters

expected
Object
The expected object
actual
Object
The actual object
format
String
The format of the message to display if the assertion fails, containing zero or more format items.
args
array<Object>[]()[]
An Object array containing zero or more objects to format.

Remarks

The error message is formatted using Format(String, array<Object>[]()[]).

See Also

Assert Class