fun <T> expect(subject: T): RootExpect<T>
Creates an Expect for the given subject.
subject
- The subject for which we are going to postulate assertions.
AssertionError
- in case an assertion does not hold.
Return
The newly created assertion container.
fun <T> expect(subject: T, assertionCreator: Expect<T>.() -> Unit): Expect<T>
Creates an Expect for the given subject and Expect.addAssertionsCreatedBy the given assertionCreator-lambda where the created Assertions are added as a group and reported as a whole.
subject
- The subject for which we are going to postulate assertions.
assertionCreator
- Assertion group block with a non-fail fast behaviour.
AssertionError
- in case an assertion does not hold.
Return
The newly created assertion container.