fun <E, T : Iterable<E>> IAssertionPlant<T>.containsStrictly(expected: E, vararg otherExpected: E): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains only expected and the otherExpected (if defined) in the defined order.
It is a shortcut for contains.inOrder.only.objects(expected, *otherExpected)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.
fun <E : Any, T : Iterable<E>> IAssertionPlant<T>.containsStrictly(assertionCreator: IAssertionPlant<E>.() -> Unit, vararg otherAssertionCreators: IAssertionPlant<E>.() -> Unit): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains only an entry holding the assertions created by the assertionCreator and an additional entry for each otherAssertionCreators (if defined) in the defined order holding the assertions created by them.
It is a shortcut for contains.inOrder.only.entries(expected, *otherExpected)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.