toString method

  1. @override
String toString()
override

Creates a string representation of the IncorrectCallCountException.

Implementation

@override
String toString() {
  return "Expected ${_formatCalls(expectedCalls)} to have been made " +
      "but ${_formatCalls(actualCalls)} has actually been made.";
}