doc / ch.tutteli.atrium.assertions / BasicAssertion

BasicAssertion

class BasicAssertion : IBasicAssertion

A default implementation for IBasicAssertion which lazily evaluates holds.

Constructors

<init>

BasicAssertion(description: ITranslatable, representation: Any, holds: Boolean)

Constructor overload with an eager BasicAssertion.holds.

BasicAssertion(description: ITranslatable, expected: Any, test: () -> Boolean)

Constructor overload with a lazy BasicAssertion.holds.

Properties

description

val description: ITranslatable

The complementary description to the expected result such as contains, is not etc.

expected

val expected: Any

The expected result.

Functions

holds

fun holds(): Boolean

Indicates whether the assertion holds or not.