Méthode | Description | |
---|---|---|
Matches ( object actual ) : bool |
Test whether the constraint is satisfied by a given value
|
|
PropertyConstraint ( string name, NUnit.Framework.Constraints.Constraint baseConstraint ) : System |
Initializes a new instance of the T:PropertyConstraint class.
|
|
WriteActualValueTo ( |
Write the actual value for a failing constraint test to a MessageWriter. The default implementation simply writes the raw value of actual, leaving it to the writer to perform any formatting.
|
|
WriteDescriptionTo ( |
Write the constraint description to a MessageWriter
|
Méthode | Description | |
---|---|---|
GetStringRepresentation ( ) : string |
Returns the string representation of the constraint.
|
protected GetStringRepresentation ( ) : string | ||
Résultat | string |
public Matches ( object actual ) : bool | ||
actual | object | The value to be tested |
Résultat | bool |
public PropertyConstraint ( string name, NUnit.Framework.Constraints.Constraint baseConstraint ) : System | ||
name | string | The name. |
baseConstraint | NUnit.Framework.Constraints.Constraint | The constraint to apply to the property. |
Résultat | System |
public WriteActualValueTo ( |
||
writer | The writer on which the actual value is displayed | |
Résultat | void |
public WriteDescriptionTo ( |
||
writer | The writer on which the description is displayed | |
Résultat | void |