EqualConstraint
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.
Flag the constraint to compare arrays as collections
and return self.
Gets a value indicating whether to compare case insensitive.
Gets a value indicating whether or not to clip strings.
Causes the tolerance to be interpreted as a TimeSpan in days.
Gets the failure points.
Causes the tolerance to be interpreted as a TimeSpan in hours.
Flag the constraint to ignore case and return self.
Causes the tolerance to be interpreted as a TimeSpan in milliseconds.
Causes the tolerance to be interpreted as a TimeSpan in minutes.
Flag the constraint to suppress string clipping
and return self.
Switches the .Within() modifier to interpret its tolerance as
a percentage that the actual values is allowed to deviate from
the expected value.
Causes the tolerance to be interpreted as a TimeSpan in seconds.
Causes the tolerance to be interpreted as a TimeSpan in clock ticks.
Gets the tolerance for this comparison.
Switches the .Within() modifier to interpret its tolerance as
a distance in representable values (see remarks).
Flags the constraint to include Offset
property in comparison of two DateTimeOffset values.
Initializes a new instance of the EqualConstraint class.
Flag the constraint to use the supplied IComparer object.
Flag the constraint to use the supplied IComparer object.
Flag the constraint to use the supplied boolean-returning delegate.
Flag the constraint to use the supplied Comparison object.
Flag the constraint to use the supplied IEqualityComparer object.
Flag the constraint to use the supplied IEqualityComparer object.
public EqualConstraint Using<TCollectionType, TMemberType>(Func<TCollectionType, TMemberType, bool> comparison)
Flag the constraint to use the supplied predicate function
Flag the constraint to use a tolerance when determining equality.