interface Assertion: Any

Allows assertion implementations to determine a result.

Methods

pass

abstract fun pass(description: String?)

Mark this result as passed.

Parameters

Name Description
description: String?

An optional description of the assertion result.

ReturnValue

Name Description
Unit

fail

abstract fun fail(description: String?, cause: Throwable?)

Mark this result as failed.

Parameters

Name Description
description: String?

An optional description of the failure.

cause: Throwable?

ReturnValue

Name Description
Unit