Numerics.AreEqual(Object, Object, Tolerance) Method

Definition

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

Applies to