ReadOnlyDictionaryAssertions<TDictionary, TKey, TValue>.NotContainKey Method
Definition
Asserts that the dictionary does not contain the specified key.
public ReadOnlyDictionaryAssertionsChain<TDictionary, TKey, TValue> NotContainKey(TKey? key);
Parameters
| Name | Type | Description |
|---|---|---|
| key | TKey | The key that should not be present. |
Returns
ReadOnlyDictionaryAssertionsChain<TDictionary, TKey, TValue>
A ReadOnlyDictionaryAssertionsChain<TDictionary, TKey, TValue> for chaining further assertions.