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

DictionaryContainsKeyConstraint

DictionaryContainsKeyConstraint is used to test whether a dictionary contains an expected object as a key.
protected object Expected { get; }

Gets the expected object

public DictionaryContainsKeyConstraint(object expected)

Construct a DictionaryContainsKeyConstraint

public DictionaryContainsKeyConstraint Using<TCollectionType, TMemberType>(Func<TCollectionType, TMemberType, bool> comparison)

Flag the constraint to use the supplied predicate function