#ifndef _TEST_CARTESIAN_COMPLEX_H_ #define _TEST_CARTESIAN_COMPLEX_H_ #include "cppunit/TestCase.h" #include "cppunit/TestSuite.h" #include "cppunit/extensions/HelperMacros.h" using namespace CppUnit; using namespace std; /** * @author Keith Lee * keithlee [ at ] unc.edu */ class TestCartesianComplex : public CppUnit::TestCase { private: //create a suite of tests CPPUNIT_TEST_SUITE( TestCartesianComplex ); CPPUNIT_TEST( testAccessors ); CPPUNIT_TEST( testEqualityOperators ); CPPUNIT_TEST( testPrint ); CPPUNIT_TEST_SUITE_END( ); //define functions listed in test suite public: void testAccessors( ); void testEqualityOperators( ); void testPrint( ); }; //register test suite for auto lookup and run CPPUNIT_TEST_SUITE_REGISTRATION( TestCartesianComplex ); #endif