SORTIE C++ Test Documentation
|
Tests the SnagDecomp class descended from clBehaviorBase. More...
#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. | |
const char * | WriteXMLFile1 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 1. | |
const char * | WriteXMLFile2 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 2. | |
const char * | WriteXMLErrorFile1 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 1. | |
const char * | WriteXMLErrorFile2 () |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 2. | |
Tests the SnagDecomp class descended from clBehaviorBase.
|
protected |
Tests error processing.
This uses WriteXMLErrorFileX() to introduce errors and makes sure that they are caught.
void clTestSnagDecomp::TestSnagDecomp | ( | ) |
Tests the Snag Decay Class Dynamics class.
WriteXMLFile1() and WriteXMLFile2() create separate parameter file. The files have the following common characteristics:
WriteXMLFile1() tests the snag fall function under harvesting, as follows:
WriteXMLFile2() tests the tree fall function, as follows:
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.
|
protected |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 1.
|
protected |
Writes a parameter file with the specifications given for TestSnagDecomp(), error condition 2.
|
protected |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 1.
|
protected |
Writes a parameter file with the specifications given for TestSnagDecomp(), run 2.