expect
Creates an Expect for the given subject.
Return
The newly created Expect.
Since
1.3.0
Parameters
subject
The subject for which we are going to postulate expectations.
Throws
in case an assertion does not hold.
open override fun <T> expect(subject: T, expectationCreator: Expect<T>.() -> Unit): Expect<T>(source)
Creates an Expect for the given subject and appends the expectations the given expectationCreator-lambda creates as group to it.
Return
The newly created Expect.
Since
1.3.0
Parameters
subject
The subject for which we are going to postulate expectations.
expectationCreator
expectation-group with a non-fail fast behaviour.
Throws
in case an assertion does not hold.