40 #ifndef _unittestenumerations_cpp
41 #define _unittestenumerations_cpp
77 throw std::invalid_argument(
"Cannot convert to String from TestResult");
84 {
throw std::invalid_argument(
"Cannot convert to TestResult from empty String"); }
94 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(S) " + Text); }
99 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(W) " + Text); }
104 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(C) " + Text); }
109 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(I) " + Text); }
114 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(U) " + Text); }
119 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(F) " + Text); }
124 {
throw std::invalid_argument(
"Cannot convert to TestResult from text(F) " + Text); }
126 {
throw std::invalid_argument(
"Cannot convert to TestResult from text() " + Text); }
const Mezzanine::String FailedString("Failed")
Corresponds to TestResult::Failed.
const Mezzanine::String InconclusiveString("Inconclusive")
Corresponds to TestResult::Inconclusive.
const Mezzanine::String NotApplicableString("NotApplicable")
Corresponds to TestResult::NotApplicable.
const Mezzanine::String UnknownString("Unknown")
Corresponds to TestResult::Unknown.
Enumerations and constant values associated with the Unit tests.
Mezzanine::String TestResultToString(TestResult Convertable)
This converts A test result enum value into a String matching the identifier name.
const Mezzanine::String CancelledString("Cancelled")
Corresponds to TestResult::Cancelled.
All the definitions for datatypes as well as some basic conversion functions are defined here...
This is not even a kind of failure, This is used to when referencing a test, so if this winds up comi...
const Mezzanine::String WarningString("Warning")
Corresponds to TestResult::Warning.
Test was simply not ran at the behest of the user.
const Mezzanine::String SkippedString("Skipped")
Corresponds to TestResult::Skipped.
TestResult StringToTestResult(Mezzanine::String Text)
Roughly convert a String to a TestResult.
Since we don't know what happened this is the worst kind of failure.
const Mezzanine::String SuccessString("Success")
Corresponds to TestResult::Success.
Technically the test passed but there is something that is not quite right.
TestResult
Return values from tests.
If a user answers that with "don't know" in a test that involved interaction, The user knows there is...
The bulk of the engine components go in this namspace.
Was canceled by user, so success is unknown, but user knows test was canceled.
Test was ran and appeared to work.
std::string String
A datatype used to a series of characters.