doc / ch.tutteli.atrium.core / CoreFactoryCommon / newCollectingAssertionContainer

newCollectingAssertionContainer

abstract fun <T> newCollectingAssertionContainer(maybeSubject: Option<T>): CollectingAssertionContainer<T>
Deprecated: Use CollectingExpect instead; will be removed with 1.0.0

Creates a CollectingAssertionContainer which is intended to be used as receiver object in lambdas so that it can collect Assertions created inside the lambda.

Parameters

maybeSubject - Either Some wrapping the subject of the current assertion or None in case a previous subject change was not successful.

Return
The newly created assertion container.