fun <K, V : Any, T : Map<out K, V?>> Expect<T>.containsEntriesOf(mapLike: MapLike): Expect<T>
(source)
Expects that the subject of this
expectation (a Map) contains the key-value pairs of the given mapLike.
Delegates to contains.inAnyOrder.entriesOf
expect(mapOf(1 to "a")).containsEntriesOf(listOf(1 to "a"))
fails {
expect(mapOf(1 to "a")).containsEntriesOf(listOf(1 to "b")) // fails because the map does not contain <1,"b">
}
Return
an Expect for the subject of this
expectation.