MapExpectationX<Return, KeyParam, ValueParam> extension

Matchers for Maps

on

Methods

containsKey(KeyParam key) → Return
Returns a matcher which matches maps containing the key with any value.
containsPair(KeyParam key, ValueParam value) → Return
Returns a matcher which matches maps containing the key-value pair with key => value.
containsValue(ValueParam? value) → Return
Returns a matcher which matches maps containing the given value.