withFailureHint
|
fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withFailureHint(failureHintFactory: () -> Assertion): DescriptiveAssertionWithFailureHint.ShowOption
Option to create a DescriptiveAssertion like assertion with an additional hint which might be shown if the
Descriptive.DescriptionOption.test fails.
|
withFailureHintBasedOnDefinedSubject
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withFailureHintBasedOnDefinedSubject(expect: Expect<T>, failureHintFactory: (T) -> Assertion): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep>
Option to create a DescriptiveAssertion like assertion with an additional hint
which is based on the subject of the expectation and
which is only shown the subject is defined.
|
withFailureHintBasedOnSubject
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withFailureHintBasedOnSubject(expect: Expect<T>, failureHintSubStep: DescriptiveAssertionWithFailureHint.FailureHintSubjectDefinedOption<T>.() -> Pair<() -> Assertion, (T) -> Assertion>): DescriptiveAssertionWithFailureHint.ShowOption
Option to create a DescriptiveAssertion like assertion with an additional hint
(which is based on the subject of the expectation)
which might be shown if the Descriptive.DescriptionOption.test fails.
|
withFileAttributesFailureHint
|
fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withFileAttributesFailureHint(expect: Expect<IoResult<BasicFileAttributes>>): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> |
withHelpOnFailure
|
fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withHelpOnFailure(failureHintFactory: () -> Assertion): DescriptiveAssertionWithFailureHint.ShowOption
Option to create a DescriptiveAssertion like assertion with an additional hint which might be shown if the
Descriptive.DescriptionOption.test fails.
|
withHelpOnFailureBasedOnDefinedSubject
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withHelpOnFailureBasedOnDefinedSubject(expect: Expect<T>, failureHintFactory: (T) -> Assertion): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep>
Option to create a DescriptiveAssertion like assertion with an additional hint
which is based on the subject of the expectation and
which is only shown the subject is defined.
|
withHelpOnFailureBasedOnSubject
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withHelpOnFailureBasedOnSubject(expect: Expect<T>, failureHintSubStep: DescriptiveAssertionWithFailureHint.FailureHintSubjectDefinedOption<T>.() -> Pair<() -> Assertion, (T) -> Assertion>): DescriptiveAssertionWithFailureHint.ShowOption
Option to create a DescriptiveAssertion like assertion with an additional hint
(which is based on the subject of the expectation)
which might be shown if the Descriptive.DescriptionOption.test fails.
|
withHelpOnFileAttributesFailure
|
fun Descriptive.DescriptionOption<Descriptive.FinalStep>.withHelpOnFileAttributesFailure(expect: Expect<IoResult<BasicFileAttributes>>): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> |
withHelpOnIOExceptionFailure
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withHelpOnIOExceptionFailure(expect: Expect<IoResult<T>>, f: (Path, IOException) -> Assertion?): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> |
withIOExceptionFailureHint
|
fun <T> Descriptive.DescriptionOption<Descriptive.FinalStep>.withIOExceptionFailureHint(expect: Expect<IoResult<T>>, f: (Path, IOException) -> Assertion?): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> |