<PackageReference Include="NUnit" Version="3.0.0-beta-2" />

Numerics

public class Numerics
The Numerics class contains common operations on numeric _values.
public static bool AreEqual(object expected, object actual, ref Tolerance tolerance)

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 int Compare(object expected, object actual)

Compare two numeric _values, performing the usual numeric conversions.

public static bool IsFixedPointNumeric(object obj)

Checks the type of the object, returning true if the object is a fixed point numeric type.

public static bool IsFloatingPointNumeric(object obj)

Checks the type of the object, returning true if the object is a floating point numeric type.

public static bool IsNumericType(object obj)

Checks the type of the object, returning true if the object is a numeric type.