class IterableContainsInAnyOrderEntriesAssertionCreator<E : Any, T : Iterable<E>> : ContainsAssertionCreator<T, IAssertionPlant<E>.() -> Unit, IChecker>, ICreator<T, IAssertionPlant<E>.() -> Unit>
Represents a creator of a sophisticated contains
assertions for Iterable where an expected entry can appear
in any order and is identified by holding a group of assertions, created by an assertion creator lambda.
T
- The type of the IAssertionPlant.subject for which the contains
assertion is be build.
IterableContainsInAnyOrderEntriesAssertionCreator(searchBehaviour: IterableContainsInAnyOrderSearchBehaviour, checkers: List<IChecker>)
Represents a creator of a sophisticated |
fun createAssertionGroupForSearchCriteriaAssertions(assertions: List<IAssertion>): IAssertionGroup
Creates an IAssertionGroup representing the sophisticated |
|
fun searchAndCreateAssertion(plant: IAssertionPlant<T>, searchCriterion: IAssertionPlant<E>.() -> Unit, featureFactory: (Int, ITranslatable) -> IAssertionGroup): IAssertionGroup
Searches for something fulfilling the given searchCriterion in the given plant's subject and should pass on the number of occurrences to the given featureFactory which creates feature assertions based on the checkers, which in turn can be used to create a resulting IAssertionGroup representing the assertion for a search criteria as a whole. |