Method | Description | |
---|---|---|
Exactly ( int expectedCount ) : ConstraintExpression |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed.
|
|
Member ( object expected ) : CollectionContainsConstraint |
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
|
|
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.
|
public static Exactly ( int expectedCount ) : ConstraintExpression | ||
expectedCount | int | |
return | ConstraintExpression |
public static Member ( object expected ) : CollectionContainsConstraint | ||
expected | object | |
return | CollectionContainsConstraint |
public static Property ( string name ) : |
||
name | string | |
return |