summaryrefslogtreecommitdiff
path: root/tests/corelib/numerics/Commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-18 23:49:09 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:37 -0400
commit4c460a1c40cfb1547ce9a4c91b4e8a87d768463d (patch)
treeea0adacb03f779059e36b3af84b3b0311d36de15 /tests/corelib/numerics/Commodity.h
parent705ce8c6a15a90517aca57bdcd8f3a921179cb11 (diff)
downloadfork-ledger-4c460a1c40cfb1547ce9a4c91b4e8a87d768463d.tar.gz
fork-ledger-4c460a1c40cfb1547ce9a4c91b4e8a87d768463d.tar.bz2
fork-ledger-4c460a1c40cfb1547ce9a4c91b4e8a87d768463d.zip
Added initialize Commodity test file.
Diffstat (limited to 'tests/corelib/numerics/Commodity.h')
-rw-r--r--tests/corelib/numerics/Commodity.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/corelib/numerics/Commodity.h b/tests/corelib/numerics/Commodity.h
new file mode 100644
index 00000000..46af6ecf
--- /dev/null
+++ b/tests/corelib/numerics/Commodity.h
@@ -0,0 +1,36 @@
+#ifndef _COMMMODITY_H
+#define _COMMMODITY_H
+
+#include "UnitTests.h"
+
+class CommodityTestCase : public CPPUNIT_NS::TestCase
+{
+ CPPUNIT_TEST_SUITE(CommodityTestCase);
+
+ CPPUNIT_TEST(testConstructors);
+ 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 testConstructors();
+ void testPriceHistory();
+ void testLots();
+ void testScalingBase();
+ void testReduction();
+
+private:
+ CommodityTestCase(const CommodityTestCase &copy);
+ void operator=(const CommodityTestCase &copy);
+};
+
+#endif /* _COMMMODITY_H */