abstract infix fun assertIt(assertionCreator: Assert<E>.() -> Unit): Assert<T>
Makes the assertion that the given index is within the bounds of Assert.subject and that the corresponding entry holds all assertions the given assertionCreator might create for it.
AssertionError
- Might throw an AssertionError if a created Assertions (by calling assertionCreator)
does not hold.
IllegalArgumentException
- in case the given assertionCreator did not create a single assertion.
Return
This plant to support a fluent API.