<PackageReference Include="NUnit" Version="5.0.0" />

NUnit.Framework.Constraints.EqualNumericWithoutUsingConstraint<T>

public class EqualNumericWithoutUsingConstraint<T> : Constraint where T : struct, IConvertible
public T Expected { get; }

Switches the .Within() modifier to interpret its tolerance as a percentage that the actual values is allowed to deviate from the expected value.

public Tolerance Tolerance { get; }

Gets the tolerance for this comparison.

Switches the .Within() modifier to interpret its tolerance as a distance in representable values (see remarks).

Initializes a new instance of the EqualConstraint class.

public ConstraintResult ApplyTo(T actual)

Test whether the constraint is satisfied by a given value

Flag the constraint to use a tolerance when determining equality.