Has
Helper class with properties and methods that supply
a number of constraints used in Asserts.
Returns a ConstraintExpression, which will apply
the following constraint to all members of a collection,
succeeding if all of them succeed.
Returns a new ConstraintExpression, which will apply the following
constraint to the Count property of the object being tested.
Returns a new ConstraintExpression, which will apply the following
constraint to the InnerException property of the object being tested.
Returns a new ConstraintExpression, which will apply the following
constraint to the Length property of the object being tested.
Returns a new ConstraintExpression, which will apply the following
constraint to the Message property of the object being tested.
Returns a ConstraintExpression that negates any
following constraint.
Returns a ConstraintExpression, which will apply
the following constraint to all members of a collection,
succeeding if all of them fail.
Returns a ConstraintExpression, which will apply
the following constraint to all members of a collection,
succeeding if at least one of them succeeds.
public Has()
Returns a new AttributeConstraint checking for the
presence of a particular attribute on an object.
Returns a new AttributeConstraint checking for the
presence of a particular attribute on an object.
Returns a ConstraintExpression, which will apply
the following constraint to all members of a collection,
succeeding only if a specified number of them succeed.
Returns a new CollectionContainsConstraint checking for the
presence of a particular object in the collection.
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.