NUnit.Framework.Constraints.ConstraintFactory: Method Members

The methods of NUnit.Framework.Constraints.ConstraintFactory are listed below. For a list of all members, see the ConstraintFactory Members list.

See Also: Inherited members from System.Object

Public Methods

AssignableFrom(Type) : AssignableFromConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
AssignableFrom<T>() : AssignableFromConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
AssignableTo(Type) : AssignableToConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
AssignableTo<T>() : AssignableToConstraint
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument.
AtLeast(object) : GreaterThanOrEqualConstraint
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
AtMost(object) : LessThanOrEqualConstraint
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
Attribute(Type) : ResolvableConstraintExpression
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.
Attribute<T>() : ResolvableConstraintExpression
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.
Contains(object) : CollectionContainsConstraint
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
Contains(string) : ContainsConstraint
Returns a new ContainsConstraint. This constraint will, in turn, make use of the appropriate second-level constraint, depending on the type of the actual argument. This overload is only used if the item sought is a string, since any other type implies that we are looking for a collection member.
ContainsSubstring(string) : SubstringConstraint
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument.
DoesNotContain(string) : SubstringConstraint
Returns a constraint that fails if the actual value contains the substring supplied as an argument.
DoesNotEndWith(string) : EndsWithConstraint
Returns a constraint that fails if the actual value ends with the substring supplied as an argument.
DoesNotMatch(string) : RegexConstraint
Returns a constraint that fails if the actual value matches the pattern supplied as an argument.
DoesNotStartWith(string) : StartsWithConstraint
Returns a constraint that fails if the actual value starts with the substring supplied as an argument.
EndsWith(string) : EndsWithConstraint
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
EqualTo(object) : EqualConstraint
Returns a constraint that tests two items for equality
EquivalentTo(IEnumerable) : CollectionEquivalentConstraint
Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument.
static
Exactly(int) : ConstraintExpression
Documentation for this section has not yet been entered.
GreaterThan(object) : GreaterThanConstraint
Returns a constraint that tests whether the actual value is greater than the suppled argument
GreaterThanOrEqualTo(object) : GreaterThanOrEqualConstraint
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument
InRange(IComparable, IComparable) : RangeConstraint
Returns a constraint that tests whether the actual value falls within a specified range.
InRange<T>(T, T) : RangeConstraint<T>
Documentation for this section has not yet been entered.
InstanceOf(Type) : InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
InstanceOf<T>() : InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
InstanceOfType(Type) : InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
InstanceOfType<T>() : InstanceOfTypeConstraint
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type.
LessThan(object) : LessThanConstraint
Returns a constraint that tests whether the actual value is less than the suppled argument
LessThanOrEqualTo(object) : LessThanOrEqualConstraint
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument
Matches(string) : RegexConstraint
Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument.
Member(object) : CollectionContainsConstraint
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
Property(string) : ResolvableConstraintExpression
Returns a new PropertyConstraintExpression, which will either test for the existence of the named property on the object being tested or apply any following constraint to that property.
SameAs(object) : SameAsConstraint
Returns a constraint that tests that two references are the same object
SamePath(string) : SamePathConstraint
Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization.
SamePathOrUnder(string) : SamePathOrUnderConstraint
Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization.
StartsWith(string) : StartsWithConstraint
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
StringContaining(string) : SubstringConstraint
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument.
StringEnding(string) : EndsWithConstraint
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
StringMatching(string) : RegexConstraint
Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument.
StringStarting(string) : StartsWithConstraint
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
SubPath(string) : SubPathConstraint
Documentation for this section has not yet been entered.
SubsetOf(IEnumerable) : CollectionSubsetConstraint
Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument.
TypeOf(Type) : ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
TypeOf<T>() : ExactTypeConstraint
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.