class IterableContainsInAnyOrderObjectsAssertionCreator<S, T : Iterable<S>> : ContainsObjectsAssertionCreator<T, S, IterableContainsInAnyOrderSearchBehaviour, IChecker>, ICreator<T, S>
Represents a creator of a sophisticated contains
assertions for Iterable where an expected entry can appear
in any order and is identified by expected objects (equality comparison).
T
- The type of the IAssertionPlant.subject for which the contains
assertion is be build.
S
- The type of the elements of the iterable, used as search criterion.
IterableContainsInAnyOrderObjectsAssertionCreator(searchBehaviour: IterableContainsInAnyOrderSearchBehaviour, checkers: List<IChecker>)
Represents a creator of a sophisticated |
val descriptionContains: DescriptionIterableAssertion
Provides the translation for |
|
val descriptionNumberOfOccurrences: DescriptionIterableAssertion
Provides the translation for |
fun search(plant: IAssertionPlant<T>, searchCriterion: S): Int
Searches for something matching the given searchCriterion in the given plant's subject and returns the number of occurrences. |
open fun createAssertionGroupForSearchCriteriaAssertions(assertions: List<IAssertion>): IAssertionGroup
Creates an IAssertionGroup representing the sophisticated |