doc / ch.tutteli.atrium.domain.creating.changers / PostFinalStep / addToInitial

addToInitial

fun addToInitial(assertionCreator: Expect<R>.() -> Unit): Expect<T>

Creates a new Expect for the feature, adds all assertions the given assertionCreator creates for it and returns the initial Expect.

Returns
An assertion consisting of all assertions the given assertionCreator might create for the new Expect of the feature.