C# Class NUnit.Framework.Constraints.CollectionContainsConstraint

CollectionContainsConstraint is used to test whether a collection contains an expected object as a member.
Inheritance: NUnit.Framework.Constraints.CollectionConstraint
Afficher le fichier Open project: nunit-legacy/nunitv2 Class Usage Examples

Méthodes publiques

Méthode Description
CollectionContainsConstraint ( object expected ) : System.Collections

Construct a CollectionContainsConstraint

WriteDescriptionTo ( MessageWriter writer ) : void

Write a descripton of the constraint to a MessageWriter

Méthodes protégées

Méthode Description
doMatch ( IEnumerable actual ) : bool

Test whether the expected item is contained in the collection

Method Details

CollectionContainsConstraint() public méthode

Construct a CollectionContainsConstraint
public CollectionContainsConstraint ( object expected ) : System.Collections
expected object
Résultat System.Collections

WriteDescriptionTo() public méthode

Write a descripton of the constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter
Résultat void

doMatch() protected méthode

Test whether the expected item is contained in the collection
protected doMatch ( IEnumerable actual ) : bool
actual IEnumerable
Résultat bool