doc / ch.tutteli.atrium.creating / createAssertionsAndCheckThem

createAssertionsAndCheckThem

inline fun <T : Any> IAssertionPlant<T>.createAssertionsAndCheckThem(createAssertions: IAssertionPlant<T>.() -> Unit): IAssertionPlant<T>

Uses this plant as receiver of the given createAssertions function and then calls IAssertionPlant.checkAssertions.

Exceptions

AssertionError - Might throw an AssertionError in case a created IAssertion does not hold.

Return
This plant to support a fluent-style API.