The members of NUnit.Framework.Constraints.ConstraintFactory are listed below.
See Also: Inherited members from System.Object
| Documentation for this section has not yet been entered. |
| [read-only] | All | ConstraintExpression. Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed. |
| [read-only] | BinarySerializable | BinarySerializableConstraint. Returns a constraint that tests whether an object graph is serializable in binary format. |
| [read-only] | Count | ResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. |
| [read-only] | Empty | EmptyConstraint. Returns a constraint that tests for empty |
| [read-only] | False | FalseConstraint. Returns a constraint that tests for False |
| [read-only] | InnerException | ResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. |
| [read-only] | Length | ResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. |
| [read-only] | Message | ResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. |
| [read-only] | NaN | NaNConstraint. Returns a constraint that tests for NaN |
| [read-only] | Negative | LessThanConstraint. Documentation for this section has not yet been entered. |
| [read-only] | No | ConstraintExpression. Returns a ConstraintExpression that negates any following constraint. |
| [read-only] | None | ConstraintExpression. Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail. |
| [read-only] | Not | ConstraintExpression. Returns a ConstraintExpression that negates any following constraint. |
| [read-only] | Null | NullConstraint. Returns a constraint that tests for null |
| [read-only] | Ordered | CollectionOrderedConstraint. Returns a constraint that tests whether a collection is ordered |
| [read-only] | Positive | GreaterThanConstraint. Documentation for this section has not yet been entered. |
| [read-only] | Some | ConstraintExpression. Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds. |
| [read-only] | True | TrueConstraint. Returns a constraint that tests for True |
| [read-only] | Unique | UniqueItemsConstraint. Returns a constraint that tests whether a collection contains all unique items. |
| [read-only] | XmlSerializable | XmlSerializableConstraint. Returns a constraint that tests whether an object graph is serializable in xml format. |
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. | ||