atrium-api-infix-en_GB-jvm / ch.tutteli.atrium.api.infix.en_GB.creating.list.get.builders / ListGetStep

ListGetStep

interface ListGetStep<E, T : List<E>> (source)

Represents the extension point for another step after a get index-step within a sophisticated get assertion building process for List.

Parameters

E - The element type of the List.

T - A subtype of List.

Properties

expect

abstract val expect: Expect<T>

The Expect for which this assertion is created

index

abstract val index: Int

The given index which will be used to perform the List.get.

Functions

assertIt

abstract infix fun assertIt(assertionCreator: Expect<E>.() -> Unit): Expect<T>

Makes the assertion that the given index is within the bounds of Expect.subject and that the corresponding entry holds all assertions the given assertionCreator might create for it.

Companion Object Functions

create

fun <E, T : List<E>> create(expect: Expect<T>, index: Int): ListGetStep<E, T>