interface HoldsOption
(source)
Option step which allows to specify DescriptiveAssertion.holds.
abstract val failing: Descriptive.DescriptionOption<Descriptive.FinalStep>
Defines a constant failing assertion. |
|
abstract val holding: Descriptive.DescriptionOption<Descriptive.FinalStep>
Defines a constant holding assertion. |
abstract fun withTest(test: () -> Boolean): Descriptive.DescriptionOption<Descriptive.FinalStep>
Uses the given test as DescriptiveAssertion.holds. abstract fun <T> withTest(subjectProvider: SubjectProvider<T>, test: (T) -> Boolean): Descriptive.DescriptionOption<Descriptive.FinalStep>
Uses the given test as DescriptiveAssertion.holds based on the subject provided by subjectProvider. |
fun create(): Descriptive.HoldsOption
Factory method to create the HoldsOption step in the process of building a descriptive assertion. |