C# Класс PclUnit.Constraints.Has

Helper class with properties and methods that supply a number of constraints used in Asserts.
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ) : ResolvableConstraintExpression

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.

Описание методов

Exactly() публичный статический Метод

Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed.
public static Exactly ( int expectedCount ) : ConstraintExpression
expectedCount int
Результат ConstraintExpression

Member() публичный статический Метод

Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
public static Member ( object expected ) : CollectionContainsConstraint
expected object
Результат CollectionContainsConstraint

Property() публичный статический Метод

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 Property ( string name ) : ResolvableConstraintExpression
name string
Результат PclUnit.Constraints.Pieces.ResolvableConstraintExpression