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

Pairs

class Pairs<out K, out V> : VarArgHelper<Pair<K, V>>
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.12.0#migration for migration hints and scripts.

Parameter object to express Pair<K, V>, vararg Pair<K, V> in the infix-api.

Constructors

<init>

Pairs(expected: Pair<K, V>, vararg otherExpected: Pair<K, V>)

Parameter object to express Pair<K, V>, vararg Pair<K, V> in the infix-api.

Properties

expected

val expected: Pair<K, V>

The first argument in the argument list T, vararg T

otherExpected

vararg val otherExpected: Array<out Pair<K, V>>

The second argument in the argument list T, vararg T

Inherited Properties

mapArguments

open val mapArguments: ArgumentMapperBuilder<T>

Creates an ArgumentMapperBuilder which allows to map expected and otherExpected.

Inherited Functions

toList

open fun toList(): List<T>

Returns the arguments as List.