Verifies that unexpectedKey is not 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 DoesNotContainKey<TKey, TValue>(
IDictionary<TKey, TValue> dictionary,
TKey unexpectedKey,
string messageFormat,
params Object[] messageArgs
)
|
| Visual Basic (Declaration) |
|---|
Public Shared Sub DoesNotContainKey(Of TKey, TValue) ( _
dictionary As IDictionary(Of TKey, TValue), _
unexpectedKey As TKey, _
messageFormat As String, _
ParamArray messageArgs As Object() _
) |
Parameters
- dictionary
- Type: System.Collections.Generic..::.IDictionary<(Of <(TKey, TValue>)>)
The dictionary of items.
- unexpectedKey
- 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