Exemple #1
0
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");
}
Exemple #2
0
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");
}