toHold
infix fun <T> Expect<T>.toHold(thirdPartyExpectation: DescriptionRepresentationWithExecutor<T>): Expect<T>(source)
Expects that the DescriptionRepresentationWithExecutor.expectationExecutor doesn't throw and creates an assertion representing this third party expectation with the given DescriptionRepresentationWithExecutor.description and DescriptionRepresentationWithExecutor.representation.
Return
an Expect for the subject of this
expectation.
Since
1.2.0
Parameters
thirdPartyExpectation
The parameter object used for this function, use thirdPartyExpectation(description, representation) { ... }
to create a DescriptionRepresentationWithExecutor