C# 클래스 PclUnit.Constraints.Has

Helper class with properties and methods that supply a number of constraints used in Asserts.
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

메소드 설명
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