doc / ch.tutteli.atrium.assertions.basic.contains / IContains

IContains

interface IContains

Defines the basic contract for sophisticated contains assertion builders.

A builder typically allows a user to choose a desired ISearchBehaviour, one or more ICheckers and uses an ICreator to finish the building process.

Types

IChecker

interface IChecker

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

ICreator

interface ICreator<in T : Any, in S>

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

ISearchBehaviour

interface ISearchBehaviour

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