Numerics.AreEqual(Object, Object, Tolerance) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Test two numeric values for equality, performing the usual numeric conversions and using a provided or default tolerance. If the tolerance provided is Empty, this method may set it to a default tolerance.
public static bool AreEqual (object expected, object actual, ref NUnit.Framework.Constraints.Tolerance tolerance);
static member AreEqual : obj * obj * -> bool
Parameters
- expected
- Object
The expected value
- actual
- Object
The actual value
- tolerance
- Tolerance
A reference to the tolerance in effect
Returns
True if the values are equal