ResolvableConstraintExpression Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class ResolvableConstraintExpression : NUnit.Framework.Constraints.ConstraintExpression, NUnit.Framework.Constraints.IResolveConstraint
type ResolvableConstraintExpression = class
inherit ConstraintExpression
interface IResolveConstraint
- Inheritance
- Implements
Constructors
ResolvableConstraintExpression() |
Create a new instance of ResolvableConstraintExpression |
ResolvableConstraintExpression(ConstraintBuilder) |
Create a new instance of ResolvableConstraintExpression, passing in a pre-populated ConstraintBuilder. |
Fields
builder |
The ConstraintBuilder holding the elements recognized so far (Inherited from ConstraintExpressionBase) |
Properties
All |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed. (Inherited from ConstraintExpression) |
And |
Appends an And Operator to the expression |
BinarySerializable |
Returns a constraint that tests whether an object graph is serializable in binary format. (Inherited from ConstraintExpression) |
Count |
Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. (Inherited from ConstraintExpression) |
Empty |
Returns a constraint that tests for empty (Inherited from ConstraintExpression) |
False |
Returns a constraint that tests for False (Inherited from ConstraintExpression) |
InnerException |
Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. (Inherited from ConstraintExpression) |
Length |
Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. (Inherited from ConstraintExpression) |
Message |
Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. (Inherited from ConstraintExpression) |
NaN |
Returns a constraint that tests for NaN (Inherited from ConstraintExpression) |
Negative | (Inherited from ConstraintExpression) |
No |
Returns a ConstraintExpression that negates any following constraint. (Inherited from ConstraintExpression) |
None |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail. (Inherited from ConstraintExpression) |
Not |
Returns a ConstraintExpression that negates any following constraint. (Inherited from ConstraintExpression) |
Null |
Returns a constraint that tests for null (Inherited from ConstraintExpression) |
Or |
Appends an Or operator to the expression. |
Ordered |
Returns a constraint that tests whether a collection is ordered (Inherited from ConstraintExpression) |
Positive | (Inherited from ConstraintExpression) |
Some |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds. (Inherited from ConstraintExpression) |
True |
Returns a constraint that tests for True (Inherited from ConstraintExpression) |
Unique |
Returns a constraint that tests whether a collection contains all unique items. (Inherited from ConstraintExpression) |
With |
With is currently a NOP - reserved for future use. (Inherited from ConstraintExpression) |
XmlSerializable |
Returns a constraint that tests whether an object graph is serializable in xml format. (Inherited from ConstraintExpression) |
Methods
Append(Constraint) |
Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built. (Inherited from ConstraintExpressionBase) |
Append(ConstraintOperator) |
Appends an operator to the expression and returns the resulting expression itself. (Inherited from ConstraintExpressionBase) |
Append(SelfResolvingOperator) |
Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression. (Inherited from ConstraintExpressionBase) |
AssignableFrom(Type) |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. (Inherited from ConstraintExpression) |
AssignableFrom<T>() |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. (Inherited from ConstraintExpression) |
AssignableTo(Type) |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. (Inherited from ConstraintExpression) |
AssignableTo<T>() |
Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. (Inherited from ConstraintExpression) |
AtLeast(Object) |
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument (Inherited from ConstraintExpression) |
AtMost(Object) |
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument (Inherited from ConstraintExpression) |
Attribute(Type) |
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. (Inherited from ConstraintExpression) |
Attribute<T>() |
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. (Inherited from ConstraintExpression) |
Contains(Object) |
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. (Inherited from ConstraintExpression) |
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. (Inherited from ConstraintExpression) |
ContainsSubstring(String) |
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. (Inherited from ConstraintExpression) |
EndsWith(String) |
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. (Inherited from ConstraintExpression) |
EqualTo(Object) |
Returns a constraint that tests two items for equality (Inherited from ConstraintExpression) |
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. (Inherited from ConstraintExpression) |
Exactly(Int32) | (Inherited from ConstraintExpression) |
GreaterThan(Object) |
Returns a constraint that tests whether the actual value is greater than the suppled argument (Inherited from ConstraintExpression) |
GreaterThanOrEqualTo(Object) |
Returns a constraint that tests whether the actual value is greater than or equal to the suppled argument (Inherited from ConstraintExpression) |
InRange<T>(T, T) | (Inherited from ConstraintExpression) |
InstanceOf(Type) |
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. (Inherited from ConstraintExpression) |
InstanceOf<T>() |
Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. (Inherited from ConstraintExpression) |
LessThan(Object) |
Returns a constraint that tests whether the actual value is less than the suppled argument (Inherited from ConstraintExpression) |
LessThanOrEqualTo(Object) |
Returns a constraint that tests whether the actual value is less than or equal to the suppled argument (Inherited from ConstraintExpression) |
Matches(Constraint) |
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax. (Inherited from ConstraintExpression) |
Matches(String) |
Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument. (Inherited from ConstraintExpression) |
Matches<T>(Predicate<T>) |
Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax. (Inherited from ConstraintExpression) |
Member(Object) |
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. (Inherited from ConstraintExpression) |
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. (Inherited from ConstraintExpression) |
SameAs(Object) |
Returns a constraint that tests that two references are the same object (Inherited from ConstraintExpression) |
SamePath(String) |
Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization. (Inherited from ConstraintExpression) |
SamePathOrUnder(String) |
Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization. (Inherited from ConstraintExpression) |
StartsWith(String) |
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. (Inherited from ConstraintExpression) |
StringContaining(String) |
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. (Inherited from ConstraintExpression) |
StringEnding(String) |
Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. (Inherited from ConstraintExpression) |
StringMatching(String) |
Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument. (Inherited from ConstraintExpression) |
StringStarting(String) |
Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. (Inherited from ConstraintExpression) |
SubPath(String) | (Inherited from ConstraintExpression) |
SubsetOf(IEnumerable) |
Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument. (Inherited from ConstraintExpression) |
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. (Inherited from ConstraintExpressionBase) |
TypeOf(Type) |
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. (Inherited from ConstraintExpression) |
TypeOf<T>() |
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. (Inherited from ConstraintExpression) |
Operators
Explicit Interface Implementations
IResolveConstraint.Resolve() |
Resolve the current expression to a Constraint |