ReadOnlyDictionaryAssertions<TDictionary, TKey, TValue> Class
Definition
Provides assertions for read-only dictionary values.
public sealed class ReadOnlyDictionaryAssertions<TDictionary, TKey, TValue> : ObjectAssertions<TDictionary>
where TDictionary : IReadOnlyDictionary<TKey, TValue>
Type Parameters
| Name | Description |
|---|---|
| TDictionary | The type of the dictionary being asserted on. |
| TKey | The type of the dictionary keys. |
| TValue | The type of the dictionary values. |
Constructors
| Name | Description |
|---|---|
| ReadOnlyDictionaryAssertions(TDictionary) | Provides assertions for read-only dictionary values. |
Methods
| Name | Description |
|---|---|
| ContainKey(TKey) | Asserts that the dictionary contains the specified key. |
| NotContainKey(TKey) | Asserts that the dictionary does not contain the specified key. |