NUnit.Framework.Constraints.ConstraintExpression Members

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

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

Public Constructors

Initializes a new instance of the ConstraintExpression class.
Initializes a new instance of the ConstraintExpression class passing in a ConstraintBuilder, which may be pre-populated.

Public Properties

[read-only]
AllConstraintExpression. Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed.
[read-only]
BinarySerializableBinarySerializableConstraint. Returns a constraint that tests whether an object graph is serializable in binary format.
[read-only]
CountResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested.
[read-only]
EmptyEmptyConstraint. Returns a constraint that tests for empty
[read-only]
FalseFalseConstraint. Returns a constraint that tests for False
[read-only]
InnerExceptionResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested.
[read-only]
LengthResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested.
[read-only]
MessageResolvableConstraintExpression. Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested.
[read-only]
NaNNaNConstraint. Returns a constraint that tests for NaN
[read-only]
NegativeLessThanConstraint. Documentation for this section has not yet been entered.
[read-only]
NoConstraintExpression. Returns a ConstraintExpression that negates any following constraint.
[read-only]
NoneConstraintExpression. Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail.
[read-only]
NotConstraintExpression. Returns a ConstraintExpression that negates any following constraint.
[read-only]
NullNullConstraint. Returns a constraint that tests for null
[read-only]
OrderedCollectionOrderedConstraint. Returns a constraint that tests whether a collection is ordered
[read-only]
PositiveGreaterThanConstraint. Documentation for this section has not yet been entered.
[read-only]
SomeConstraintExpression. 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]
TrueTrueConstraint. Returns a constraint that tests for True
[read-only]
UniqueUniqueItemsConstraint. Returns a constraint that tests whether a collection contains all unique items.
[read-only]
WithConstraintExpression. With is currently a NOP - reserved for future use.
[read-only]
XmlSerializableXmlSerializableConstraint. Returns a constraint that tests whether an object graph is serializable in xml format.

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.
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.
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(Constraint) : Constraint
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.
Matches(string) : RegexConstraint
Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument.
Matches<T>(Predicate<T>) : Constraint
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.
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.