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

NUnit.Framework.Constraints.CollectionSubsetConstraint

CollectionSubsetConstraint is used to determine whether one collection is a subset of another

Construct a CollectionSubsetConstraint

public CollectionSubsetConstraint Using<TSubsetElement, TSupersetElement>(Func<TSubsetElement, TSupersetElement, bool> comparison)

Flag the constraint to use the supplied predicate function