A container to hold all assertions. Note everything is static here. More...
#include <DwmUnitAssert.hh>
Static Public Member Functions | |
| static bool | Failed (const std::string &filename, const std::string &function, int lineNumber, const std::string &test) |
| Adds a failed assertion. More... | |
| static bool | Passed (const std::string &filename, const std::string &function, int lineNumber, const std::string &test) |
| Adds a passed assertion. More... | |
| static AssertionCounter | Total () |
| Returns the total passed and failed counter. | |
| static std::ostream & | Print (std::ostream &os, bool onlyFailed=false) |
| Prints to an ostream. More... | |
| static std::ostream & | PrintXML (std::ostream &os, bool onlyFailed=false) |
A container to hold all assertions. Note everything is static here.
|
static |
Adds a failed assertion.
Not called directly; UnitAssert() calls this member. Always returns false.
|
static |
Adds a passed assertion.
Not called directly; UnitAssert() calls this member. Always returns true.
|
static |
Prints to an ostream.
If onlyFailed is true, prints only information for failed assertions.