doc / ch.tutteli.atrium.assertions.basic.contains.builders / validateButAtMost

validateButAtMost

fun validateButAtMost(atLeastTimes: Int, butAtMostTimes: Int, nameAtLeastFun: String, nameButAtMostFun: String, nameExactlyFun: String): Unit

Validates that atLeastTimes is not equal to or greater than butAtMostTimes; throws IllegalArgumentException otherwise, pointing the user to use the given nameExactlyFun in case atLeastTimes equals butAtMostTimes.