transformAndAppend

abstract fun transformAndAppend(assertionCreator: Expect<FeatureT>.() -> Unit): Expect<FeatureT>(source)

Finishes the transformation process by carrying the transformation out and appending the assertions the given assertionCreator creates for the subject of type FeatureT resulting from the transformation as single assertion.

The assertions the given assertionCreator creates are appended as hint in case the transformation fails. This is also the difference between calling transform and then append the sub-assertions in a second call as the sub-assertions the assertionCreator creates would not be available for reporting in case the transformation cannot be carried out.

Return

The newly created Expect for the subject of type FeatureT resulting from the transformation.