00001 //--------------------------------------------------------------------------- 00002 // TestCarbonValueCalculator 00003 //--------------------------------------------------------------------------- 00004 #if !defined(TestCarbonValueCalculator_H) 00005 #define TestCarbonValueCalculator_H 00006 00007 #include <cppunit/TestFixture.h> 00008 #include <cppunit/TestCaller.h> 00009 00010 class clSimManager; 00011 class clTreePopulation; 00012 class clTree; 00013 00017 class clTestCarbonValueCalculator : public CppUnit::TestFixture { 00018 00019 public: 00020 00024 void TestCarbonValueCalculator(); 00025 00026 protected: 00027 00036 void TestNormalProcessing(clSimManager *p_oSimManager); 00037 00043 void TestErrorProcessing(clSimManager *p_oSimManager); 00044 00053 char* WriteXMLFile1(); 00054 00060 char* WriteXMLErrorFile1(); 00061 00067 char* WriteXMLErrorFile2(); 00068 00074 char* WriteXMLErrorFile3(); 00075 00082 void WriteCommonErrorStuff(std::fstream &oOut); 00083 }; 00084 //--------------------------------------------------------------------------- 00085 #endif // TestBiomassCalculator_H