CPPUNIT_ASSERT_MESSAGE("GetErrorString(ERRCODE_ABORT, aErrStr) should return false",
!ErrorHandler::GetErrorString(ERRCODE_ABORT, aErrStr)); // normally protected, but MockErrorHandler is a friend of this class
aErrHdlr.CreateString(ERRCODE_ABORT, aErrStr);
CPPUNIT_ASSERT_EQUAL_MESSAGE("error message should be non-dynamic", u"Non-dynamic error"_ustr, aErrStr);
CPPUNIT_ASSERT_MESSAGE("GetErrorString(ERRCODE_NONE, aErrStr) should return false",
!ErrorHandler::GetErrorString(ERRCODE_NONE, aErrStr));
aErrHdlr.CreateString(ERRCODE_NONE, aErrStr);
CPPUNIT_ASSERT_EQUAL_MESSAGE("error message should be non-dynamic", u"Non-dynamic error"_ustr, aErrStr);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.