doc / ch.tutteli.atrium.api.cc.infix.en_GB / asEntries

asEntries

fun <K, V> Assert<Map<out K, V>>.asEntries(): Assert<Set<Entry<K, V>>> (source)

Turns Assert<Map<out K, V>> into Assert<Set<Map.Entry<K, V>>>.

The transformation as such is not reflected in reporting. Use property(subject::entries) if you want to show the transformation in reporting.

Return
The newly created AssertionPlant for the transformed subject.

infix fun <K, V> Assert<Map<out K, V>>.asEntries(assertionCreator: Assert<Set<Entry<K, V>>>.() -> Unit): Assert<Set<Entry<K, V>>> (source)

Turns Assert<Map<out K, V>> into Assert<Set<Map.Entry<K, V>>> and makes the assertion that the assertions the given assertionCreator might create hold.

The transformation as such is not reflected in reporting. Use property(subject::entries) if you want to show the transformation in reporting.

Return
The newly created AssertionPlant for the transformed subject.