41 msg <<
"Unit test " <<
data.testName
42 <<
" failed in file " <<
data.file
43 <<
" on line " <<
data.line <<
".\n"
45 <<
"\nbut it was not.";
63 msg <<
"Unit test " <<
data.testName
64 <<
" failed in file " <<
data.file
65 <<
" on line " <<
data.line <<
".\n"
67 <<
"\nbut it did not.\n"
68 <<
"The value of the expression\n " <<
exp1
88 msg <<
"Unit test " <<
data.testName
89 <<
" failed in file " <<
data.file
90 <<
" on line " <<
data.line <<
".\n"
92 <<
"\nbut it did not.\n"
93 <<
"The value of the expression\n " <<
exp1
95 <<
"The value of the expression\n " <<
exp2
118 const char* testName,
const char* file,
size_t line) {
124 msg <<
"Unit test " << testName
125 <<
" failed in file " << file
126 <<
" on line " << line <<
".\n"
142 const char* testName,
const char* file,
size_t line,
149 <<
"and the value of the expression\n " <<
expression2
155 const char* testName,
const char* file,
size_t line,
163 msg <<
"Expected \n " <<
valueString <<
"\nto be true, but it was not.\n";
168 const char* testName,
const char* file,
size_t line,
172 msg <<
"Expected \n " <<
valueString <<
"\nto be true, but it was not.\n";
179 const char* testName,
const char* file,
size_t line,
187 msg <<
"Expected \n " <<
valueString <<
"\nto be false, but it was not.\n";
193 const char* testName,
const char* file,
size_t line) {
196 <<
"but operator== returned false. "
197 <<
"The left hand side prints as\n" <<
a <<
"\nwhile "
198 <<
"the right hand side prints as\n" <<
b <<
".\n";
204 const char* testName,
const char* file,
size_t line) {
207 <<
"but operator!= returned false. "
208 <<
"The left hand side prints as\n" <<
a <<
"\nwhile "
209 <<
"the right hand side prints as\n" <<
b <<
".\n";
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
AssertException(const string &str)
void assertOK(const StdData &data)
void assertTrue2Failed(const char *valueString, const char *testName, const char *file, size_t line, const char *expression1, const char *expression1Value, const char *expression2, const char *expression2Value)
void assertFail1(const char *cond, const char *expected, const StdData &data, const char *exp1, string exp1Value)
void assertFailed2(const char *errorMsg, const char *testName, const char *file, size_t line, const char *expression1, const char *expression1Value, const char *expression2, const char *expression2Value)
void assertTrue(bool value, const char *valueString, const char *testName, const char *file, size_t line, bool printDot)
void assertFail(const char *cond, const char *expected, const StdData &data)
void assertFailed(const char *errorMsg, const char *testName, const char *file, size_t line)
void assertSucceeded(bool printDot)
void assertFalse(bool value, const char *valueString, const char *testName, const char *file, size_t line, bool printDot)
void assertNotEqualFailed(const char *a, const char *b, const char *aString, const char *bString, const char *testName, const char *file, size_t line)
void assertEqualFailed(const char *a, const char *b, const char *aString, const char *bString, const char *testName, const char *file, size_t line)
void assertFail2(const char *cond, const char *expected, const StdData &data, const char *exp1, string exp1Value, const char *exp2, string exp2Value)