<PackageReference Include="NUnit" Version="3.12.0" />

CollectionTally

public sealed class CollectionTally
CollectionTally counts (tallies) the number of occurrences of each object in one or more enumerations.
public sealed class CollectionTallyResult

The result of a CollectionTally.

public CollectionTallyResult Result { get; }

The result of the comparison between the two collections.

Construct a CollectionTally object from a comparer and a collection.

public void TryRemove(object o)

Try to remove an object from the tally.

public void TryRemove(IEnumerable c)

Try to remove a set of objects from the tally.