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,
string messageFormat,
params Object[] messageArgs
)
|
| Visual Basic (Declaration) |
|---|
Public Shared Sub ContainsKey(Of TKey, TValue) ( _
dictionary As IDictionary(Of TKey, TValue), _
expectedKey As TKey, _
messageFormat As String, _
ParamArray messageArgs As Object() _
) |
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.
- messageFormat
- Type: System..::.String
The custom assertion message format, or null if none.
- messageArgs
- Type: array<
System..::.Object
>[]()[]
The custom assertion message arguments, or null if none.
Type Parameters
- TKey
- The type of key.
- TValue
- The type of value.
Exceptions
See Also