Property Constraint (NUnit 2.4.2)
PropertyConstraint is used to test for existence of a named property and optionally tests its value. It may also be used as a prefix for other constraints to be applied to the property.
| Syntax Helper | Constructor | Operation |
|---|---|---|
| Has.Property( string ) | PropertyConstraint( string ) | tests that a specific property exists |
| Has.Property( string, object ) | PropertyConstraint( string, object ) | tests that the value of a property is equal to the value provided |
| Has.Property( string, Constraint)... | PropertyConstraint | applies the following constraint to the value of a named property |
| Has.Length( int ) | PropertyConstraint | tests that the object's Length property is equal to the value given |
| Has.Count( int ) | PropertyConstraint | tests that the object's Count property is equal to the value given |
