1 // 2 // TestFailure.cpp 3 // 4 5 6 #include "CppUnit/TestFailure.h" 7 #include "CppUnit/Test.h" 8 9 10 namespace CppUnit { 11 12 13 // Returns a short description of the failure. toString()14std::string TestFailure::toString() 15 { 16 return _failedTest->toString () + ": " + _thrownException->what(); 17 } 18 19 20 } // namespace CppUnit 21