doc / ch.tutteli.atrium.creating / Expect / addAssertion

addAssertion

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

Overrides AssertionHolder.addAssertion

Adds the given assertion to this container.

Parameters

assertion - The assertion which will be added to this container.

Exceptions

AssertionError - Might throw an AssertionError in case Assertions are immediately evaluated (see ReportingAssertionContainer).

Return
An Expect for the current subject of the assertion.