Verifies that two floats are equal considering a delta. If the expected value is infinity then the delta value is ignored. 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(
	float expected,
	float actual,
	float delta,
	string message
)
Public Shared Sub AreEqual ( _
	expected As Single, _
	actual As Single, _
	delta As Single, _
	message As String _
)
public:
static void AreEqual(
	float expected, 
	float actual, 
	float delta, 
	String^ message
)

Parameters

expected
Single
The expected value
actual
Single
The actual value
delta
Single
The maximum acceptable difference between the the expected and the actual
message
String
The message printed out upon failure

See Also

Assert Class