doc / ch.tutteli.atrium.logic.creating.basic.contains.checkers.impl / ContainsChecker / createDescriptiveAssertion

createDescriptiveAssertion

protected fun createDescriptiveAssertion(description: Translatable, check: () -> Boolean): DescriptiveAssertion (source)

Creates a DescriptiveAssertion based on the given description, the property times as Text and the given check.

Parameters

description - The description used for DescriptiveAssertion.description

check - The check used for DescriptiveAssertion.holds

Return
The newly created DescriptiveAssertion.