InAnyOrderValuesAssertionCreator

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).

Parameters

T

The type of the subject of this expectation for which the contains assertion is be build.

SC

The type of the elements of the iterable, used as search criteria.

searchBehaviour

The search behaviour -- in this case representing in any order which is used to decorate the description (a Translatable) which is used for the AssertionGroup.

checkers

The checkers which create assertions based on the search result.

Constructors

Link copied to clipboard
constructor(converter: (T) -> Iterable<SC>, searchBehaviour: InAnyOrderSearchBehaviour, checkers: List<IterableLikeContains.Checker>, notToHaveNextOrNoneFunName: String)

Represents a creator of a sophisticated contains assertions for Iterable where expected entries can appear in any order and are identified by expected objects (equality comparison).

Functions

Link copied to clipboard
override fun createAssertionGroup(container: AssertionContainer<T>, searchCriteria: List<SC>): AssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject of the given container, based on the given searchCriteria.