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

NUnit.Framework.Constraints.CollectionTally

public sealed class CollectionTally
CollectionTally counts (tallies) the number of occurrences of each object in one or more enumerations.
namespace NUnit.Framework.Constraints { public sealed class CollectionTally { public sealed class CollectionTallyResult { public List<object> ExtraItems { get; } public List<object> MissingItems { get; } public CollectionTallyResult(List<object> missingItems, List<object> extraItems); } public CollectionTallyResult Result { get; } public CollectionTally(NUnitEqualityComparer comparer, IEnumerable c); public void TryRemove(object o); public void TryRemove(IEnumerable c); } }