SORTIE C++ Test Documentation
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
clTestSimManager Class Reference

Tests the class clSimManager. More...

#include <TestSimManager.h>

Inheritance diagram for clTestSimManager:

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.
 

Detailed Description

Tests the class clSimManager.

Member Function Documentation

static CppUnit::Test* clTestSimManager::suite ( )
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.

Returns
The test suite.
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().

const char* clTestSimManager::WriteXMLErrorFile1 ( )
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.

Returns
The filename of the XML file to parse.
const char* clTestSimManager::WriteXMLErrorFile2 ( )
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.

Returns
The filename of the XML file to parse.
const char* clTestSimManager::WriteXMLErrorFile3 ( )
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.

Returns
The filename of the XML file to parse.
const char* clTestSimManager::WriteXMLFile1 ( )
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.

Returns
The filename of the XML file to parse.
const char* clTestSimManager::WriteXMLFile2 ( )
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.

Returns
The filename of the XML file to parse.
const char* clTestSimManager::WriteXMLFile3 ( )
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.

Returns
The filename of the XML file to parse.

The documentation for this class was generated from the following file: