atrium-api-fluent-en_GB-jvm / ch.tutteli.atrium.api.fluent.en_GB / asIterable

asIterable

fun <E, T : Sequence<E>> <ERROR CLASS><T>.asIterable(): <ERROR CLASS><Iterable<E>> (source)

Turns Expect<Sequence<E>> into Expect<Iterable<E>>.

The transformation as such is not reflected in reporting. Use feature(Sequence::asIterable) if you want to show the transformation in reporting.

Return
The newly created Expect for the transformed subject.

fun <E, T : Sequence<E>> <ERROR CLASS><T>.asIterable(assertionCreator: <ERROR CLASS><Iterable<E>>.() -> Unit): <ERROR CLASS><T> (source)

Expects that the subject of the assertion holds all assertions the given assertionCreator creates for the subject as Iterable.

The transformation as such is not reflected in reporting. Use feature(Sequence::asIterable, assertionCreator) if you want to show the transformation in reporting.

Return
An Expect for the current subject of the assertion.