Verifies that two objects are equal. Two objects are considered equal if both are null, or if both have the same value. All non-numeric types are compared by using the Equals method. If they are not equal an AssertionException is thrown.

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

Syntax

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

Parameters

expected
Object
The value that is expected
actual
Object
The actual value
message
String
The message to display if objects are not equal

See Also

Assert Class