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
Mostrar archivo Open project: nunit-legacy/nunitv2 Class Usage Examples

Public Methods

Method Description
CollectionContainsConstraint ( object expected ) : System.Collections

Construct a CollectionContainsConstraint

WriteDescriptionTo ( MessageWriter writer ) : void

Write a descripton of the constraint to a MessageWriter

Protected Methods

Method Description
doMatch ( IEnumerable actual ) : bool

Test whether the expected item is contained in the collection

Method Details

CollectionContainsConstraint() public method

Construct a CollectionContainsConstraint
public CollectionContainsConstraint ( object expected ) : System.Collections
expected object
return System.Collections

WriteDescriptionTo() public method

Write a descripton of the constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter
return void

doMatch() protected method

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