PropertyConstraint extracts a named property and uses its value as the actual value for a chained constraint.
More...
|
static Constraint | operator& (Constraint left, Constraint right) |
| This operator creates a constraint that is satisfied only if both argument constraints are satisfied. More...
|
|
static Constraint | operator| (Constraint left, Constraint right) |
| This operator creates a constraint that is satisfied if either of the argument constraints is satisfied. More...
|
|
static Constraint | operator! (Constraint constraint) |
| This operator creates a constraint that is satisfied if the argument constraint is not satisfied. More...
|
|
IConstraint | baseConstraint |
| The base constraint More...
|
|
string | descriptionPrefix |
| Prefix used in forming the constraint description More...
|
|
override string | Description [get] |
| The Description of what this constraint tests, for use in messages and in the ConstraintResult. More...
|
|
string | DisplayName [get, protected set] |
| The display name of this Constraint for use by ToString(). The default value is the name of the constraint with trailing "Constraint" removed. Derived classes may set this to another name in their constructors. More...
|
|
virtual string | Description [get, protected set] |
| The Description of what this constraint tests, for use in messages and in the ConstraintResult. More...
|
|
object[] | Arguments [get, private set] |
| Arguments provided to this Constraint, for use in formatting the description. More...
|
|
ConstraintBuilder | Builder [get, set] |
| The ConstraintBuilder holding this constraint More...
|
|
ConstraintExpression | And [get] |
| Returns a ConstraintExpression by appending And to the current constraint. More...
|
|
ConstraintExpression | With [get] |
| Returns a ConstraintExpression by appending And to the current constraint. More...
|
|
ConstraintExpression | Or [get] |
| Returns a ConstraintExpression by appending Or to the current constraint. More...
|
|
string | DisplayName [get] |
| The display name of this Constraint for use by ToString(). More...
|
|
string | Description [get] |
| The Description of what this constraint tests, for use in messages and in the ConstraintResult. More...
|
|
object[] | Arguments [get] |
| Arguments provided to this Constraint, for use in formatting the description. More...
|
|
ConstraintBuilder | Builder [get, set] |
| The ConstraintBuilder holding this constraint More...
|
|
PropertyConstraint extracts a named property and uses its value as the actual value for a chained constraint.
NUnit.Framework.Constraints.PropertyConstraint.PropertyConstraint |
( |
string |
name, |
|
|
IConstraint |
baseConstraint |
|
) |
| |
|
inline |
Initializes a new instance of the PropertyConstraint class.
- Parameters
-
name | The name. |
baseConstraint | The constraint to apply to the property. |
override ConstraintResult NUnit.Framework.Constraints.PropertyConstraint.ApplyTo< TActual > |
( |
TActual |
actual | ) |
|
|
inlinevirtual |
override string NUnit.Framework.Constraints.PropertyConstraint.GetStringRepresentation |
( |
| ) |
|
|
inlineprotectedvirtual |
readonly string NUnit.Framework.Constraints.PropertyConstraint.name |
|
private |
object NUnit.Framework.Constraints.PropertyConstraint.propValue |
|
private |
The documentation for this class was generated from the following file: