Summary
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.
Syntax
public static bool AreEqual<TExpected, TActual>(TExpected expected, TActual actual, ref Tolerance tolerance)
Type Parameters
| Name |
Description |
| TExpected |
|
| TActual |
|
Parameters
| Name |
Type |
Description |
| expected |
TExpected |
The expected value |
| actual |
TActual |
The actual value |
| tolerance |
Tolerance |
A reference to the tolerance in effect |
Return Value
| Type |
Description |
| bool |
True if the values are equal |