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.
description
- The description used for DescriptiveAssertion.description
check
- The check used for DescriptiveAssertion.holds
Return
The newly created DescriptiveAssertion.