Verifies that expectedKey is in the dictionary dictionary.
Namespace:
MbUnit.Framework
Assembly:
MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void ContainsKey<TKey, TValue>(
IDictionary<TKey, TValue> dictionary,
TKey expectedKey
)
|
| Visual Basic (Declaration) |
|---|
Public Shared Sub ContainsKey(Of TKey, TValue) ( _
dictionary As IDictionary(Of TKey, TValue), _
expectedKey As TKey _
) |
Parameters
- dictionary
- Type: System.Collections.Generic..::.IDictionary<(Of <(TKey, TValue>)>)
The dictionary of items.
- expectedKey
- Type: TKey
The key expected to be found in the dictionary.
Type Parameters
- TKey
- The type of key.
- TValue
- The type of value.
Exceptions
See Also