mocha_inspect (Mocha::Cardinality)

        # File lib/mocha/cardinality.rb, line 58
    58:     def mocha_inspect
    59:       if allowed_any_number_of_times?
    60:         "allowed any number of times"
    61:       else
    62:         if required == 0 && maximum == 0
    63:           "expected never"
    64:         elsif required == maximum
    65:           "expected exactly #{times(required)}"
    66:         elsif infinite?(maximum)
    67:           "expected at least #{times(required)}"
    68:         elsif required == 0
    69:           "expected at most #{times(maximum)}"
    70:         else
    71:           "expected between #{required} and #{times(maximum)}"
    72:         end
    73:       end
    74:     end