IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
CollectionTally counts (tallies) the number of occurrences of each object in one or more enumerations. More...
Public Member Functions | |
CollectionTally (NUnitEqualityComparer comparer, IEnumerable c) | |
Construct a CollectionTally object from a comparer and a collection More... | |
bool | TryRemove (object o) |
Try to remove an object from the tally More... | |
bool | TryRemove (IEnumerable c) |
Try to remove a set of objects from the tally More... | |
Properties | |
int | Count [get] |
The number of objects remaining in the tally More... | |
Private Member Functions | |
bool | ItemsEqual (object expected, object actual) |
Private Attributes | |
readonly List< object > | list = new List<object>() |
readonly NUnitEqualityComparer | comparer |
CollectionTally counts (tallies) the number of occurrences of each object in one or more enumerations.
|
inline |
Construct a CollectionTally object from a comparer and a collection
|
inlineprivate |
References NUnit.Framework.Constraints.Tolerance.Default.
|
inline |
Try to remove an object from the tally
o | The object to remove |
Referenced by NUnit.Framework.Constraints.NUnitEqualityComparer.DictionariesEqual(), and NUnit.Framework.Constraints.CollectionEquivalentConstraint.Matches().
|
inline |
Try to remove a set of objects from the tally
c | The objects to remove |
|
private |
|
get |
The number of objects remaining in the tally
Referenced by NUnit.Framework.Constraints.NUnitEqualityComparer.DictionariesEqual(), and NUnit.Framework.Constraints.CollectionEquivalentConstraint.Matches().