fun transformAndAppend(assertionCreator: Expect<R>.() -> Unit): Expect<R>
(source)
Overrides TransformationExecutionStep.transformAndAppend
Finishes the transformation process by carrying the transformation out and appending the assertions the given assertionCreator creates for the subject of type R resulting from the transformation as single assertion.
I.e. the assertions the given assertionCreator creates are first collected and then appended which has the effect that we append a failing assertion in case assertionCreator does not create any assertion.
Return
The newly created Expect for the subject of type R resulting from the transformation.