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

EqualTimeBaseConstraint<T>

public class EqualTimeBaseConstraint<T> : Constraint where T : struct, IEquatable<T>, IComparable<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 T Expected { get; }

Gets the expected value.

public EqualTimeBaseConstraint(T expected, Func<T, long> getTicks)

Initializes a new instance of the EqualConstraint class.

public virtual ConstraintResult ApplyTo(T actual)

Test whether the constraint is satisfied by a given value

Flag the constraint to use a tolerance when determining equality.

Flag the constraint to use a tolerance when determining equality.