abstract class ContainsChecker : IChecker
Represents a base class for IContains.ICheckers which compare how many occurrences of an expected object are found in the input of the search, against how many times the check expect it to be contained.
It further checks that times is bigger than 0 (throws an IllegalArgumentException otherwise) and additionally suggest to use a different function if times equals to zero.
ContainsChecker(times: Int, nameFunToUse: String, nameFunUsed: String)
Represents a base class for checkers which compare how many occurrences of an expected object are found in the input of the search, against how many times the check expect it to be contained. |
val times: Int
The number which the check uses to compare against the actual number of times an expected object is found in the input of the search. |
fun createBasicAssertion(description: ITranslatable, check: Boolean): IBasicAssertion
Creates an IBasicAssertion based on the given description, the property times as RawString and the given check. |
abstract fun createAssertion(foundNumberOfTimes: Int): IAssertion
Creates an IAssertion representing this check based on the given foundNumberOfTimes which is the result of the search. |
abstract class CharSequenceContainsChecker : ContainsChecker, IChecker
Represents the base class for ICharSequenceContains.IChecker. |
|
abstract class IterableContainsChecker : ContainsChecker, IChecker
Represents the base class for IIterableContains.IChecker. |