void MockFailure::addExpectationsAndCallHistory(const MockExpectedCallsList& expectations) { message_ += "\tEXPECTED calls that did NOT happen:\n"; message_ += expectations.unfulfilledCallsToString("\t\t"); message_ += "\n\tACTUAL calls that did happen (in call order):\n"; message_ += expectations.fulfilledCallsToString("\t\t"); }
void MockFailure::addExpectationsAndCallHistoryRelatedTo(const SimpleString& name, const MockExpectedCallsList& expectations) { MockExpectedCallsList expectationsForFunction; expectationsForFunction.addExpectationsRelatedTo(name, expectations); message_ += "\tEXPECTED calls that DID NOT happen related to function: "; message_ += name; message_ += "\n"; message_ += expectationsForFunction.unfulfilledCallsToString("\t\t"); message_ += "\n\tACTUAL calls that DID happen related to function: "; message_ += name; message_ += "\n"; message_ += expectationsForFunction.fulfilledCallsToString("\t\t"); }