infix fun <E, T : Iterable<E>> Assert<T>.containsStrictly(expected: E): AssertionPlant<T>
Makes the assertion that the Assert.subject contains only the expected value.
It is a shortcut for to contain inGiven order but only value expected
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E, T : Iterable<E>> Assert<T>.containsStrictly(values: Values<E>): AssertionPlant<T>
Makes the assertion that the Assert.subject contains only the expected values in the defined order.
It is a shortcut for to contain inGiven order but only the Values(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E, T : Iterable<E>> Assert<T>.containsStrictly(objects: Objects<E>): AssertionPlant<T>
Makes the assertion that the Assert.subject contains only the expected objects in the defined order.
It is a shortcut for to contain inGiven order but only the Objects(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E>> Assert<T>.containsStrictly(assertionCreator: Assert<E>.() -> Unit): AssertionPlant<T>
Makes the assertion that the Assert.subject contains only one entry which is holding the assertions created by the assertionCreator.
It is a shortcut for to contain inAny order atLeast 1 entry { ... }
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
infix fun <E : Any, T : Iterable<E>> Assert<T>.containsStrictly(entries: Entries<E, Assert<E>.() -> Unit>): AssertionPlant<T>
Makes the assertion that the Assert.subject contains only an entry holding the assertions created by the Entries.assertionCreator and an additional entry for each Entries.otherAssertionCreators (if given) in the defined order holding the assertions created by them.
It is a shortcut for to contain inGiven order but only the Entries(...)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.