Verifies that two decimals are equal. If they are not equals then an AssertionException is thrown.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void AreEqual(
	decimal expected,
	decimal actual,
	string format,
	Object[] args
)
Public Shared Sub AreEqual ( _
	expected As Decimal, _
	actual As Decimal, _
	format As String, _
	args As Object() _
)
public:
static void AreEqual(
	Decimal expected, 
	Decimal actual, 
	String^ format, 
	array<Object^>^ args
)

Parameters

expected
Decimal
The expected value
actual
Decimal
The actual value
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