doc / ch.tutteli.atrium.api.cc.en_UK.assertions.charsequence.contains.builders / CharSequenceContainsAtLeastCheckerBuilder

CharSequenceContainsAtLeastCheckerBuilder

open class CharSequenceContainsAtLeastCheckerBuilder<T : CharSequence, S : ISearchBehaviour> : CharSequenceContainsAtLeastCheckerBuilderBase<T, S>

Represents the builder of a contains at least check within the fluent API of a sophisticated contains assertion for CharSequence.

Parameters

T - The input type of the search. S - The search behaviour which should be applied for the input of the search.

Constructors

<init>

CharSequenceContainsAtLeastCheckerBuilder(times: Int, containsBuilder: CharSequenceContainsBuilder<T, S>)

Represents the builder of a contains at least check within the fluent API of a sophisticated contains assertion for CharSequence.

Inherited Properties

checkers

open val checkers: List<IChecker>

Contains all ICheckers which should be applied to the search result.

times

val times: Int

The number which the check will compare against the actual number of times an expected object is found in the input of the search.

Extension Functions

butAtMost

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsAtLeastCheckerBuilder<T, S>.butAtMost(times: Int): CharSequenceContainsButAtMostCheckerBuilder<T, S>

Restricts a contains at least assertion by specifying that the number of occurrences of the object which we are looking for, occurs at most number of times within the search input.