I have a function A that calls another function B several times. I want to mock B so that any number of calls that have the correct number of arguments, regardless of the value, will return a fixed area and be considered correct.
If or how many times a function is called, it is not part of the specification.
source share