Contains

interface Contains(source)

Defines the basic contract for sophisticated contains assertion builders.

The entry point for the contract constitutes a Contains.EntryPointStep. A builder typically allows a user to choose a desired SearchBehaviour, one or more Checkers and uses an Creator to finish the building process.

Types

Link copied to clipboard
interface Checker

Represents a check for the search result such as: the object is contained exactly once in the input of the search.

Link copied to clipboard

The step of choosing/defining Checkers.

Link copied to clipboard

The step of choosing/defining Checkers on the logic level.

Link copied to clipboard
interface Creator<T, in SC>

Represents the final step of a sophisticated contains assertion builder which creates the AssertionGroup as such.

Link copied to clipboard

The entry point of the contract. Use _logic to retrieve the EntryPointStepLogic counterpart in case you want to extend the building process.

Link copied to clipboard

The entry point of the contract, containing the container -- i.e. the subject of this expectation for which the sophisticated contain assertion should be created -- as well as the chosen searchBehaviour.

Link copied to clipboard
interface SearchBehaviour

Represents a search behaviour but leaves it up to the Creator how this behaviour is implemented -- yet, it provides a method to decorate a description (a Translatable) in order that it reflects the search behaviour.