1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
-
-
-
-
-
-
- #include <cxxtest/TestSuite.h>
- #include <LemmaCore>
-
- using namespace Lemma;
-
- class MyTestSuite : public CxxTest::TestSuite
- {
- public:
-
- void testASCIIParser( void )
- {
- auto Obj = ASCIIParser::NewSP();
- TS_ASSERT_EQUALS( Obj->GetName(), std::string("ASCIIParser") );
- }
-
- void testCubicSplineInterpolator(void)
- {
- auto Obj = CubicSplineInterpolator::NewSP();
- TS_ASSERT_EQUALS( Obj->GetName(), std::string("CubicSplineInterpolator") );
- }
-
- void testRectilinearGrid( void )
- {
- auto Obj = RectilinearGrid::NewSP();
- TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGrid") );
- }
-
- void testRectilinearGridReader( void )
- {
- auto Obj = RectilinearGridReader::NewSP();
- TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
- }
-
- void testRectilinearGridVTKExporter( void )
- {
- #ifdef LEMMAUSEVTK
- auto Obj = RectilinearGridVTKExporter::NewSP();
- TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
- #else
-
- TS_ASSERT_EQUALS( 3, 2+1 );
- #endif
- }
-
- void testWindowFilter( void )
- {
- auto Obj = WindowFilter::NewSP();
- TS_ASSERT_EQUALS( Obj->GetName(), std::string("WindowFilter") );
- }
-
- };
|