NUnit.Framework.Constraints.EqualConstraint Members

The members of NUnit.Framework.Constraints.EqualConstraint are listed below.

See Also: Inherited members from NUnit.Framework.Constraints.Constraint

Public Constructors

Initializes a new instance of the NUnit.Framework.Constraints.EqualConstraint class.

Public Properties

[read-only]
AsCollectionEqualConstraint. Flag the constraint to compare arrays as collections and return self.
[read-only]
DaysEqualConstraint. Causes the tolerance to be interpreted as a TimeSpan in days.
[read-only]
HoursEqualConstraint. Causes the tolerance to be interpreted as a TimeSpan in hours.
[read-only]
IgnoreCaseEqualConstraint. Flag the constraint to ignore case and return self.
[read-only]
MillisecondsEqualConstraint. Causes the tolerance to be interpreted as a TimeSpan in milliseconds.
[read-only]
MinutesEqualConstraint. Causes the tolerance to be interpreted as a TimeSpan in minutes.
[read-only]
NoClipEqualConstraint. Flag the constraint to suppress string clipping and return self.
[read-only]
PercentEqualConstraint. Switches the .Within() modifier to interpret its tolerance as a percentage that the actual values is allowed to deviate from the expected value.
[read-only]
SecondsEqualConstraint. Causes the tolerance to be interpreted as a TimeSpan in seconds.
[read-only]
TicksEqualConstraint. Causes the tolerance to be interpreted as a TimeSpan in clock ticks.
[read-only]
UlpsEqualConstraint. Switches the .Within() modifier to interpret its tolerance as a distance in representable values (see remarks).

Public Methods

Comparer(IComparer) : EqualConstraint
Flag the constraint to use the supplied IComparer object.
override
Matches(object) : bool
Test whether the constraint is satisfied by a given value
Using(IComparer) : EqualConstraint
Flag the constraint to use the supplied IComparer object.
Using(IEqualityComparer) : EqualConstraint
Flag the constraint to use the supplied IEqualityComparer object.
Using<T>(IComparer<T>) : EqualConstraint
Flag the constraint to use the supplied IComparer object.
Using<T>(IEqualityComparer<T>) : EqualConstraint
Flag the constraint to use the supplied IEqualityComparer object.
Using<T>(Comparison<T>) : EqualConstraint
Flag the constraint to use the supplied Comparison object.
Within(object) : EqualConstraint
Flag the constraint to use a tolerance when determining equality.
override
WriteDescriptionTo(MessageWriter)
Write description of this constraint
override
WriteMessageTo(MessageWriter)
Write a failure message. Overridden to provide custom failure messages for EqualConstraint.