AssertionContainer
Represents the extension point of the logic level for subjects of type T.
In contrast to expectation functions defined for Expect which usually return Expect, functions defined for AssertionContainer return Assertion so that they can be appended to whatever we want.
Parameters
T
The type of the subject of this
expectation.
Inheritors
Functions
Link copied to clipboard
Appends the Assertions the given assertionCreator creates to this container and returns an Expect which includes them.
Link copied to clipboard
open fun createAndAppend(description: Translatable, expected: Any?, test: (T) -> Boolean): Expect<T>
Creates a DescriptiveAssertion based on the given description, expected and test and appends it to the container.