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