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

NUnit.Framework.Constraints.CollectionTally<T>

sealed class CollectionTally<T>
Generic version of CollectionTally that counts (tallies). the number of occurrences of each typed item in one or more enumerations.
public sealed class CollectionTallyResult<T>

The result of a CollectionTally<T>.

public CollectionTallyResult<T> Result { get; }

The result of the comparison between the two collections.

Construct a CollectionTally object from a collection and a comparer.

Construct a CollectionTally object from a collection and a comparer.

public void TryRemove(T item)

Try to remove an item from the tally.

public void TryRemove(IEnumerable<T> c)

Try to remove a set of items from the tally.

public void TryRemove(IEnumerable c)

Try to remove a set of items from the tally.