ExpectationVerbs

Represents a facade to all the different expectation verb functions.

Since

1.3.0

Properties

Link copied to clipboard

Defines the default description which shall be used for expectGrouped.

Functions

Link copied to clipboard
abstract fun <T> expect(subject: T): Expect<T>

Delegates to a root expectation verb.

abstract fun <T> expect(subject: T, expectationCreator: Expect<T>.() -> Unit): Expect<T>

Delegates to a root expectation verb and appends the expectations the expectationCreator creates.

Link copied to clipboard
abstract fun expectGrouped(description: String = defaultExpectGroupDescription, groupingActions: ExpectGrouping.() -> Unit): ExpectGrouping

Delegates to a root ExpectGrouping verb.

Link copied to clipboard
abstract fun <T> expectInExpectGrouped(expectGrouping: ExpectGrouping, subject: T): Expect<T>

Delegates to an expectation verb within an ExpectGrouping-lambda and uses the given expectGrouping as receiver.

abstract fun <T> expectInExpectGrouped(expectGrouping: ExpectGrouping, subject: T, expectationCreator: Expect<T>.() -> Unit): Expect<T>

Delegates to an expectation verb within an ExpectGrouping-lambda and uses the given expectGrouping as receiver and appends the expectations the expectationCreator creates.