append

abstract fun append(assertion: Assertion): Expect<T>(source)

Appends the given assertion to this container and returns an Expect which includes it.

Whether the returned Expect is the same as the initial one is up to the implementation (i.e. if a mutable structure is used or an immutable). Atrium strives for an immutable data structure in the long run and will little by little refactor the code accordingly.

Return

an Expect for the subject of this expectation.

Parameters

assertion

The assertion which will be appended to this container.

Throws

Might throw an AssertionError in case Assertions are immediately evaluated.