#include <TestVectors.hpp>
Test::Vector xVector; AStructureWithBoolMethods xTest; xVector.addUnitToTest(Test::MakeLineDelimiter("Name of your test group here")); xVector.addUnitToTest(Test::MakeUnitTest(MakeTestName( "The unit to test" ), xTest, &AStructureWithBoolMethods::firstBoolMethod, someArgHere, ByRef(SomeArgsThatShouldBePassedByReference))); String results; // If you need to continue testing xVector.testLastInsertedVectors(results); // Else you can directly call this OutputToConsole(xVector.testAllVectors(results)); // results is optional here
Public Member Functions | |
bool | addUnitToTest (Unit *unit) |
Add a vector to the test. | |
String | testAllVectors (const String &previousResults="") |
Test all vectors. | |
String & | testLastInsertedVectors (String &result) |
Test last inserted vectors (but doesn't print any statistics). | |
Vector () |
Test::Vector::Vector | ( | ) | [inline] |
bool Test::Vector::addUnitToTest | ( | Unit * | unit | ) | [inline] |
Add a vector to the test.
Test all vectors.
Test last inserted vectors (but doesn't print any statistics).