thirdPartyExpectation
fun <T> thirdPartyExpectation(description: String, representation: Any?, expectationExecutor: (T) -> Unit): DescriptionRepresentationWithExecutor<T>(source)
Helper function to create a DescriptionRepresentationWithExecutor based on the given description and representation and expectationExecutor.
Since
1.2.0
Parameters
description
The description of the third party expectation.
representation
The representation of the third party expectation.
expectationExecutor
The lambda which executes the third party expectation where the current subject is passed as parameter.