and
Matches argument that satisfies all the matchers (first, second and all from moreMatchers). It must not receive literals. Only matchers allowed!
Example:
// matches every `getForIndex` with arg that is in range 1..4
every { dependency.getForIndex(and(gte(1), lte(4))) }
Content copied to clipboard