SORTIE C++ Test Documentation
|
Tests the class clSimManager. More...
#include <TestSimManager.h>
Public Member Functions | |
void | TestDoSetup1 () |
Tests DoSetup(). | |
void | TestDoSetup2 () |
Tests DoSetup(). | |
void | TestDoSetup3 () |
Tests DoSetup(). | |
Static Public Member Functions | |
static CppUnit::Test * | suite () |
Creates a test suite of all the test cases in this object. | |
Private Member Functions | |
const char * | WriteXMLFile1 () |
Writes the text of an XML file. | |
const char * | WriteXMLFile2 () |
Writes the text of an XML file. | |
const char * | WriteXMLFile3 () |
Writes the text of an XML file. | |
const char * | WriteXMLErrorFile1 () |
Writes an XML file which contains a data error, to test if the test object will throw an exception. | |
const char * | WriteXMLErrorFile2 () |
Writes an XML file which contains a data error, to test if the test object will throw an exception. | |
const char * | WriteXMLErrorFile3 () |
Writes an XML file which contains a data error, to test if the test object will throw an exception. | |
Tests the class clSimManager.
|
inlinestatic |
Creates a test suite of all the test cases in this object.
I'm putting it here so it will be easier to see and add new cases to.
void clTestSimManager::TestDoSetup1 | ( | ) |
Tests DoSetup().
Creates and parses an XML file, then feeds it to mp_oSimManager(). This parses the file from WriteXMLFile1().
void clTestSimManager::TestDoSetup2 | ( | ) |
Tests DoSetup().
Creates and parses an XML file, then feeds it to mp_oSimManager(). This parses the file from WriteXMLFile2().
void clTestSimManager::TestDoSetup3 | ( | ) |
Tests DoSetup().
Creates and parses an XML file, then feeds it to mp_oSimManager(). This parses the file from WriteXMLFile3().
|
private |
Writes an XML file which contains a data error, to test if the test object will throw an exception.
Number of timesteps is negative.
|
private |
Writes an XML file which contains a data error, to test if the test object will throw an exception.
Current timestep is too big.
|
private |
Writes an XML file which contains a data error, to test if the test object will throw an exception.
Years per timestep is 0.
|
private |
Writes the text of an XML file.
This file is abbreviated, and will be parsed within the test code itself rather than being passed to the test object for parsing.
This contains a positive random seed, which should become negative.
|
private |
Writes the text of an XML file.
This file is abbreviated, and will be parsed within the test code itself rather than being passed to the test object for parsing.
This contains a random seed of 0, which should become negative.
|
private |
Writes the text of an XML file.
This file is abbreviated, and will be parsed within the test code itself rather than being passed to the test object for parsing.
This contains a negative random seed, which should be left alone.