doc / ch.tutteli.atrium.domain.builders.migration / asAssert

asAssert

fun <T : Any> Expect<T>.asAssert(): Assert<T> (source)
Deprecated: Switch from Assert to Expect, most likely you only need to add `import ch.tutteli.atrium.api.fluent.en_GB.*` and then you can remove this call. This function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0


fun <T : Any> Expect<T>.asAssert(assertionCreator: Assert<T>.() -> Unit): Assert<T> (source)
Deprecated: Switch from Assert to Expect, most likely you only need to add `import ch.tutteli.atrium.api.fluent.en_GB.*` and then you can remove this call. This function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0

Turns this Expect into an Assert so that you can use functions which have not yet been migrated to Expect.

Will be removed with 1.0.0