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
AssignableFrom(Type)Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. | ||
AssignableFrom<T>()Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. | ||
AssignableTo(Type)Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. | ||
AssignableTo<T>()Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. | ||
AtLeast(object)Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument | ||
AtMost(object)Returns a constraint that tests whether the actual value is less than or equal to the suppled argument | ||
Attribute(Type)Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. | ||
Attribute<T>()Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. | ||
Contains(object)Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. | ||
Contains(string)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)Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. | ||
DoesNotContain(string)Returns a constraint that fails if the actual value contains the substring supplied as an argument. | ||
DoesNotEndWith(string)Returns a constraint that fails if the actual value ends with the substring supplied as an argument. | ||
DoesNotMatch(string)Returns a constraint that fails if the actual value matches the pattern supplied as an argument. | ||
DoesNotStartWith(string)Returns a constraint that fails if the actual value starts with the substring supplied as an argument. | ||
EndsWith(string)Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. | ||
EqualTo(object)Returns a constraint that tests two items for equality | ||
EquivalentTo(IEnumerable)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)Documentation for this section has not yet been entered. | |
GreaterThan(object)Returns a constraint that tests whether the actual value is greater than the suppled argument | ||
GreaterThanOrEqualTo(object)Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument | ||
InRange(IComparable, IComparable)Returns a constraint that tests whether the actual value falls within a specified range. | ||
InRange<T>(T, T)Documentation for this section has not yet been entered. | ||
InstanceOf(Type)Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. | ||
InstanceOf<T>()Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. | ||
InstanceOfType(Type)Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. | ||
InstanceOfType<T>()Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. | ||
LessThan(object)Returns a constraint that tests whether the actual value is less than the suppled argument | ||
LessThanOrEqualTo(object)Returns a constraint that tests whether the actual value is less than or equal to the suppled argument | ||
Matches(string)Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument. | ||
Member(object)Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. | ||
Property(string)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)Returns a constraint that tests that two references are the same object | ||
SamePath(string)Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization. | ||
SamePathOrUnder(string)Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization. | ||
StartsWith(string)Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. | ||
StringContaining(string)Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. | ||
StringEnding(string)Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. | ||
StringMatching(string)Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument. | ||
StringStarting(string)Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. | ||
SubPath(string)Documentation for this section has not yet been entered. | ||
SubsetOf(IEnumerable)Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument. | ||
TypeOf(Type)Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. | ||
TypeOf<T>()Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. | ||