NUnit.Framework.Constraints.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.
namespace NUnit.Framework.Constraints
{
public class EqualTimeBaseConstraint<T> : Constraint where T : struct, IEquatable<T>, IComparable<T>
{
public T Expected { get; }
public EqualTimeBaseConstraint(T expected, Func<T, long> getTicks);
public EqualTimeBasedConstraintWithTimeSpanTolerance<T> Within(TimeSpan amount);
public EqualTimeBasedConstraintWithNumericTolerance<T> Within(double amount);
public virtual ConstraintResult ApplyTo(T actual);
}
}