Constraints

Chris Maddock edited this page Jul 7, 2017 · 12 revisions

This page lists all the constraints available in NUnit.

Alphabetical List of Constraints

Constraint Name
AllItemsConstraint
AndConstraint
AssignableFromConstraint
AssignableToConstraint
AttributeConstraint
AttributeExistsConstraint
BinarySerializableConstraint
CollectionContainsConstraint
CollectionEquivalentConstraint
CollectionOrderedConstraint
CollectionSubsetConstraint
CollectionSupersetConstraint
DelayedConstraint
EmptyCollectionConstraint
EmptyConstraint
EmptyDirectoryConstraint
EmptyStringConstraint
EndsWithConstraint
EqualConstraint
ExactCountConstraint
ExactTypeConstraint
FalseConstraint
FileOrDirectoryExistsConstraint
GreaterThanConstraint
GreaterThanOrEqualConstraint
InstanceOfTypeConstraint
LessThanConstraint
LessThanOrEqualConstraint
NaNConstraint
NoItemConstraint
NotConstraint
NullConstraint
OrConstraint
PropertyConstraint
PropertyExistsConstraint
RangeConstraint
RegexConstraint
ReusableConstraint
SameAsConstraint
SamePathConstraint
SamePathOrUnderConstraint
SomeItemsConstraint
StartsWithConstraint
SubPathConstraint
SubstringConstraint
ThrowsConstraint
ThrowsNothingConstraint
TrueConstraint
UniqueItemsConstraint
XmlSerializableConstraint

Constraints by Category

Collection Constraints
Constraint Name
AllItemsConstraint
CollectionContainsConstraint
CollectionEquivalentConstraint
CollectionOrderedConstraint
CollectionSubsetConstraint
CollectionSupersetConstraint
EmptyCollectionConstraint
ExactCountConstraint
NoItemConstraint
SomeItemsConstraint
UniqueItemsConstraint
Comparison Constraints
Constraint Name
GreaterThanConstraint
GreaterThanOrEqualConstraint
LessThanConstraint
LessThanOrEqualConstraint
RangeConstraint
Compound Constraints
Constraint Name
AndConstraint
NotConstraint
OrConstraint
Condition Constraints
Constraint Name
EmptyConstraint
FalseConstraint
NaNConstraint
NullConstraint
TrueConstraint
File and Directory Constraints
Constraint Name
EmptyDirectoryConstraint
FileOrDirectoryExistsConstraint
SamePathConstraint
SamePathOrUnderConstraint
SubPathConstraint
String Constraints
Constraint Name
EmptyStringConstraint
EndsWithConstraint
RegexConstraint
StartsWithConstraint
SubstringConstraint
Type Constraints
Constraint Name
AssignableFromConstraint
AssignableToConstraint
ExactTypeConstraint
InstanceOfTypeConstraint

See also:

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.