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
)
Public Shared Sub AreEqual ( _
	expected As Single, _
	actual As Single, _
	delta As Single _
)
public:
static void AreEqual(
	float expected, 
	float actual, 
	float delta
)

Parameters

expected
Single
The expected value
actual
Single
The actual value
delta
Single
The maximum acceptable difference between the the expected and the actual

See Also

Assert Class