|
| ResolvableConstraintExpression () |
| Create a new instance of ResolvableConstraintExpression More...
|
|
| ResolvableConstraintExpression (ConstraintBuilder builder) |
| Create a new instance of ResolvableConstraintExpression, passing in a pre-populated ConstraintBuilder. More...
|
|
| ConstraintExpression () |
| Initializes a new instance of the ConstraintExpression class. More...
|
|
| ConstraintExpression (ConstraintBuilder builder) |
| Initializes a new instance of the ConstraintExpression class passing in a ConstraintBuilder, which may be pre-populated. More...
|
|
override string | ToString () |
| Returns a string representation of the expression as it currently stands. This should only be used for testing, since it has the side-effect of resolving the expression. More...
|
|
ConstraintExpression | Append (ConstraintOperator op) |
| Appends an operator to the expression and returns the resulting expression itself. More...
|
|
ResolvableConstraintExpression | Append (SelfResolvingOperator op) |
| Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression. More...
|
|
Constraint | Append (Constraint constraint) |
| Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built. Note that the constraint is not reduced at this time. For example, if there is a NotOperator on the stack we don't reduce and return a NotConstraint. The original constraint must be returned because it may support modifiers that are yet to be applied. More...
|
|
ConstraintExpression | Exactly (int expectedCount) |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed. More...
|
|
ResolvableConstraintExpression | Property (string name) |
| 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. More...
|
|
ResolvableConstraintExpression | Attribute (Type expectedType) |
| Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
|
|
ResolvableConstraintExpression | Attribute< TExpected > () |
| Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
|
|
Constraint | Matches (IResolveConstraint constraint) |
| Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax. More...
|
|
Constraint | Matches< TActual > (Predicate< TActual > predicate) |
| Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax. More...
|
|
EqualConstraint | EqualTo (object expected) |
| Returns a constraint that tests two items for equality More...
|
|
SameAsConstraint | SameAs (object expected) |
| Returns a constraint that tests that two references are the same object More...
|
|
GreaterThanConstraint | GreaterThan (object expected) |
| Returns a constraint that tests whether the actual value is greater than the supplied argument More...
|
|
GreaterThanOrEqualConstraint | GreaterThanOrEqualTo (object expected) |
| Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument More...
|
|
GreaterThanOrEqualConstraint | AtLeast (object expected) |
| Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument More...
|
|
LessThanConstraint | LessThan (object expected) |
| Returns a constraint that tests whether the actual value is less than the supplied argument More...
|
|
LessThanOrEqualConstraint | LessThanOrEqualTo (object expected) |
| Returns a constraint that tests whether the actual value is less than or equal to the supplied argument More...
|
|
LessThanOrEqualConstraint | AtMost (object expected) |
| Returns a constraint that tests whether the actual value is less than or equal to the supplied argument More...
|
|
ExactTypeConstraint | TypeOf (Type expectedType) |
| Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. More...
|
|
ExactTypeConstraint | TypeOf< TExpected > () |
| Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. More...
|
|
InstanceOfTypeConstraint | InstanceOf (Type expectedType) |
| Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. More...
|
|
InstanceOfTypeConstraint | InstanceOf< TExpected > () |
| Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. More...
|
|
AssignableFromConstraint | AssignableFrom (Type expectedType) |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
AssignableFromConstraint | AssignableFrom< TExpected > () |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
AssignableToConstraint | AssignableTo (Type expectedType) |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
AssignableToConstraint | AssignableTo< TExpected > () |
| Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
|
|
CollectionEquivalentConstraint | EquivalentTo (IEnumerable expected) |
| Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument. More...
|
|
CollectionSubsetConstraint | SubsetOf (IEnumerable expected) |
| Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument. More...
|
|
CollectionSupersetConstraint | SupersetOf (IEnumerable expected) |
| Returns a constraint that tests whether the actual value is a superset of the collection supplied as an argument. More...
|
|
CollectionContainsConstraint | Member (object expected) |
| Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
|
|
CollectionContainsConstraint | Contains (object expected) |
| Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
|
|
ContainsConstraint | Contains (string expected) |
| 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. More...
|
|
ContainsConstraint | Contain (string expected) |
| 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. More...
|
|
SubstringConstraint | StringContaining (string expected) |
| Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. More...
|
|
SubstringConstraint | ContainsSubstring (string expected) |
| Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. More...
|
|
StartsWithConstraint | StartWith (string expected) |
| Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
|
|
StartsWithConstraint | StartsWith (string expected) |
| Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
|
|
StartsWithConstraint | StringStarting (string expected) |
| Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
|
|
EndsWithConstraint | EndWith (string expected) |
| Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
|
|
EndsWithConstraint | EndsWith (string expected) |
| Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
|
|
EndsWithConstraint | StringEnding (string expected) |
| Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
|
|
RegexConstraint | Match (string pattern) |
| Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
|
|
RegexConstraint | Matches (string pattern) |
| Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
|
|
RegexConstraint | StringMatching (string pattern) |
| Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
|
|
SamePathConstraint | SamePath (string expected) |
| Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization. More...
|
|
SubPathConstraint | SubPathOf (string expected) |
| Returns a constraint that tests whether the path provided is the a subpath of the expected path after canonicalization. More...
|
|
SamePathOrUnderConstraint | SamePathOrUnder (string expected) |
| Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization. More...
|
|
RangeConstraint | InRange (IComparable from, IComparable to) |
| Returns a constraint that tests whether the actual value falls within a specified range. More...
|
|
|
ConstraintExpression | And [get] |
| Appends an And Operator to the expression More...
|
|
ConstraintExpression | Or [get] |
| Appends an Or operator to the expression. More...
|
|
ConstraintExpression | Not [get] |
| Returns a ConstraintExpression that negates any following constraint. More...
|
|
ConstraintExpression | No [get] |
| Returns a ConstraintExpression that negates any following constraint. More...
|
|
ConstraintExpression | All [get] |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed. More...
|
|
ConstraintExpression | Some [get] |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds. More...
|
|
ConstraintExpression | None [get] |
| Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail. More...
|
|
ResolvableConstraintExpression | Length [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. More...
|
|
ResolvableConstraintExpression | Count [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. More...
|
|
ResolvableConstraintExpression | Message [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. More...
|
|
ResolvableConstraintExpression | InnerException [get] |
| Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. More...
|
|
ConstraintExpression | With [get] |
| With is currently a NOP - reserved for future use. More...
|
|
NullConstraint | Null [get] |
| Returns a constraint that tests for null More...
|
|
TrueConstraint | True [get] |
| Returns a constraint that tests for True More...
|
|
FalseConstraint | False [get] |
| Returns a constraint that tests for False More...
|
|
GreaterThanConstraint | Positive [get] |
| Returns a constraint that tests for a positive value More...
|
|
LessThanConstraint | Negative [get] |
| Returns a constraint that tests for a negative value More...
|
|
NaNConstraint | NaN [get] |
| Returns a constraint that tests for NaN More...
|
|
EmptyConstraint | Empty [get] |
| Returns a constraint that tests for empty More...
|
|
UniqueItemsConstraint | Unique [get] |
| Returns a constraint that tests whether a collection contains all unique items. More...
|
|
BinarySerializableConstraint | BinarySerializable [get] |
| Returns a constraint that tests whether an object graph is serializable in binary format. More...
|
|
XmlSerializableConstraint | XmlSerializable [get] |
| Returns a constraint that tests whether an object graph is serializable in xml format. More...
|
|
CollectionOrderedConstraint | Ordered [get] |
| Returns a constraint that tests whether a collection is ordered More...
|
|
Constraint | Exist [get] |
| Returns a constraint that succeeds if the value is a file or directory and it exists. More...
|
|
ResolvableConstraintExpression is used to represent a compound constraint being constructed at a point where the last operator may either terminate the expression or may have additional qualifying constraints added to it.
It is used, for example, for a Property element or for an Exception element, either of which may be optionally followed by constraints that apply to the property or exception.