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

addToFeature

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

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

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