all

fun <T> Assert<T>.all(message: String, body: Assert<T>.() -> Unit)

All assertions in the given lambda are run.

assertThat("test", name = "test").all {
startsWith("t")
endsWith("t")
}

Parameters

message

An optional message to show before all failures.

body

The body to execute.


fun <T> Assert<T>.all(body: Assert<T>.() -> Unit)

All assertions in the given lambda are run.

assertThat("test", name = "test").all {
startsWith("t")
endsWith("t")
}

Parameters

body

The body to execute.