fun <T> Assert<Result<T>>.thrownError(f: Assert<Throwable>.() -> Unit): Unit
Runs the given lambda if the block throws an error, otherwise fails.