Package-level declarations

Contains the out-of-the-box expectation verb expect.

Types

Link copied to clipboard

Functions

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

Creates an Expect for the given subject.

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

Creates an Expect for the given subject and appends the expectations the given assertionCreator-lambda creates as group to it.

Link copied to clipboard
fun <T, R> Expect<T>.expect(newSubject: R): FeatureExpect<T, R>

Creates an Expect for the given (unrelated) newSubject.

fun <T, R> Expect<T>.expect(newSubject: R, assertionCreator: Expect<R>.() -> Unit): Expect<R>

Creates an Expect for the given (unrelated) newSubject and appends the expectations the given assertionCreator-lambda creates as group to it.