<PackageReference Include="NUnit" Version="4.3.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

Returns a new DictionaryContainsKeyValuePairConstraint checking for the presence of a particular key-value-pair in the dictionary.