summaryrefslogtreecommitdiff
path: root/tests/numerics/Commodity.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/numerics/Commodity.h')
-rw-r--r--tests/numerics/Commodity.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/numerics/Commodity.h b/tests/numerics/Commodity.h
new file mode 100644
index 00000000..dafa03e9
--- /dev/null
+++ b/tests/numerics/Commodity.h
@@ -0,0 +1,34 @@
+#ifndef _COMMMODITY_H
+#define _COMMMODITY_H
+
+#include "UnitTests.h"
+
+class CommodityTestCase : public CPPUNIT_NS::TestCase
+{
+ CPPUNIT_TEST_SUITE(CommodityTestCase);
+
+ CPPUNIT_TEST(testPriceHistory);
+ CPPUNIT_TEST(testLots);
+ CPPUNIT_TEST(testScalingBase);
+ CPPUNIT_TEST(testReduction);
+
+ CPPUNIT_TEST_SUITE_END();
+
+public:
+ CommodityTestCase() {}
+ virtual ~CommodityTestCase() {}
+
+ virtual void setUp();
+ virtual void tearDown();
+
+ void testPriceHistory();
+ void testLots();
+ void testScalingBase();
+ void testReduction();
+
+private:
+ CommodityTestCase(const CommodityTestCase &copy);
+ void operator=(const CommodityTestCase &copy);
+};
+
+#endif /* _COMMMODITY_H */