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

EqualTimeBasedConstraintWithNumericTolerance<T>

EqualConstraint is able to compare an actual value with the expected value provided in its constructor. Two objects are considered equal if both are null, or if both have the same value. NUnit has special semantics for some object types.
public ConstraintBuilder Builder { get; set; }

The ConstraintBuilder holding this constraint

Causes the tolerance to be interpreted as a TimeSpan in days.

Causes the tolerance to be interpreted as a TimeSpan in hours.

Causes the tolerance to be interpreted as a TimeSpan in milliseconds.

Causes the tolerance to be interpreted as a TimeSpan in minutes.

Causes the tolerance to be interpreted as a TimeSpan in seconds.

Causes the tolerance to be interpreted as a TimeSpan in clock ticks.

public EqualTimeBasedConstraintWithNumericTolerance(T expected, Func<T, long> getTicks, double tolerance)

Initializes a new instance of the EqualConstraint class.