fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.Builder<T, S>.nichtOderHoechstens(times: Int): NotOrAtMostCheckerOption<T, S>
(source)Restricts a contains
assertion by specifying that the number of occurrences of the value which we
are looking for occurs not at all or at most
number of times within the search input.
times
- The number which the check will compare against the number of times an expected value is
found in the input of the search.
IllegalArgumentException
- In case times is smaller than zero.
IllegalArgumentException
- In case times equals to zero; use enthaeltNicht instead.
Return
The newly created builder.
fun <E, T : Iterable<E>, S : InAnyOrderSearchBehaviour> IterableContains.Builder<E, T, S>.nichtOderHoechstens(times: Int): NotOrAtMostCheckerOption<E, T, S>
(source)Restricts a contains
assertion by specifying that the number of occurrences of the entry which we
are looking for occurs not at all or at most
number of times within the Iterable.
times
- The number which the check will compare against the number of times an expected entry is
found in the Iterable.
IllegalArgumentException
- In case times is smaller than zero.
IllegalArgumentException
- In case times equals to zero; use enthaeltNicht instead.
Return
The newly created builder.
fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> nichtOderHoechstens(builder: CharSequenceContainsBuilder<T, S>, times: Int): CharSequenceContainsNotOrAtMostCheckerBuilder<T, S>
(source)fun <E, T : Iterable<E>> nichtOderHoechstens(builder: IterableContainsBuilder<E, T, InAnyOrderSearchBehaviour>, times: Int): IterableContainsNotOrAtMostCheckerBuilder<E, T>
(source)