| 200 | } |
| 201 | |
| 202 | MockExpectedParameterDidntHappenFailure::MockExpectedParameterDidntHappenFailure(UtestShell* test, const SimpleString& functionName, const MockExpectedCallsList& expectations) : MockFailure(test) |
| 203 | { |
| 204 | MockExpectedCallsList expectationsForFunction; |
| 205 | expectationsForFunction.addExpectationsRelatedTo(functionName, expectations); |
| 206 | |
| 207 | message_ = "Mock Failure: Expected parameter for function \""; |
| 208 | message_ += functionName; |
| 209 | message_ += "\" did not happen.\n"; |
| 210 | |
| 211 | addExpectationsAndCallHistoryRelatedTo(functionName, expectations); |
| 212 | |
| 213 | message_ += "\n\tMISSING parameters that didn't happen:\n"; |
| 214 | message_ += "\t\t"; |
| 215 | message_ += expectationsForFunction.missingParametersToString(); |
| 216 | } |
| 217 | |
| 218 | MockNoWayToCompareCustomTypeFailure::MockNoWayToCompareCustomTypeFailure(UtestShell* test, const SimpleString& typeName) : MockFailure(test) |
| 219 | { |
nothing calls this directly
no test coverage detected