atLeast

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

Return

The newly created builder.

Parameters

times

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

Throws

In case times is zero; use notToContain instead.


Restricts a contains assertion by specifying that the number of occurrences of the entry which we are looking for occurs at least number of times within the IterableLike.

Return

The newly created builder.

Since

0.14.0 -- API existed for Iterable but not for IterableLike.

Parameters

times

The number which the check will compare against the actual number of times an expected entry is found in the IterableLike.

Throws

In case times is zero; use notToContain instead.