CollectingExpect

interface CollectingExpect<T> : Expect<T> (source)

Represents a container for Assertion which is intended to serve as receiver object for lambdas which create Assertions, in which this Expect collects the assertions created this way.

Parameters

T

The type of the subject of this Expect.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun appendAsGroup(assertionCreator: Expect<T>.() -> Unit): CollectingExpect<T>

Appends the Assertions the given assertionCreator creates to this container and returns an Expect which includes them.

Link copied to clipboard
abstract fun getAssertions(): List<Assertion>

Returns the Assertions which have been appended to this container.