#include <TestSnagDecomp.h>
Public Member Functions | |
void | TestSnagDecomp () |
Tests the snag decay class dynamics class. | |
Protected Member Functions | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 1. | |
char * | WriteXMLFile2 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 2. | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 1. | |
char * | WriteXMLErrorFile2 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 2. | |
char * | WriteXMLErrorFile3 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 3. |
void clTestSnagDecomp::TestSnagDecomp | ( | ) |
Tests the snag decay class dynamics class.
WriteXMLFile1() and WriteXMLFile2() create separate parameter file. The files have the following common characteristics:
Error condition 1: WriteXMLErrorFile1() creates the paramter file. The behavior finds a negative parameter value and correctly throws an error.
Error condition 2: WriteXMLErrorFile2() creates the parameter file. The behaviour finds that the sum of transition probabilities does not add up to 1 and correctly throws an error.
Error condition 3: WriteXMLErrorFile3() creates the parameter file. The behaviour finds that it is being improperly applied to adults and correctly throws an error.
void clTestSnagDecomp::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
This uses WriteXMLErrorFileX() to introduce errors and makes sure that they are caught.
char* clTestSnagDecomp::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 1.
char* clTestSnagDecomp::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 2.
char* clTestSnagDecomp::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 1.
char* clTestSnagDecomp::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 2.
char* clTestSnagDecomp::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 3.