C# Class NUnit.Framework.Constraints.CollectionTally

CollectionTally counts (tallies) the number of occurences of each object in one or more enumerations.
Show file Open project: pjcollins/Andr.Unit Class Usage Examples

Public Methods

Method Description
CollectionTally ( NUnitEqualityComparer comparer, IEnumerable c ) : System.Collections

Construct a CollectionTally object from a comparer and a collection

TryRemove ( IEnumerable c ) : bool

Try to remove a set of objects from the tally

TryRemove ( object o ) : bool

Try to remove an object from the tally

Private Methods

Method Description
ItemsEqual ( object expected, object actual ) : bool

Method Details

CollectionTally() public method

Construct a CollectionTally object from a comparer and a collection
public CollectionTally ( NUnitEqualityComparer comparer, IEnumerable c ) : System.Collections
comparer NUnitEqualityComparer
c IEnumerable
return System.Collections

TryRemove() public method

Try to remove a set of objects from the tally
public TryRemove ( IEnumerable c ) : bool
c IEnumerable The objects to remove
return bool

TryRemove() public method

Try to remove an object from the tally
public TryRemove ( object o ) : bool
o object The object to remove
return bool