You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
937 B

  1. #ifndef TESTMATERIALS_H
  2. #define TESTMATERIALS_H
  3. #include <cppunit/TestFixture.h>
  4. #include <cppunit/extensions/HelperMacros.h>
  5. #include <assimp/scene.h>
  6. #include <MaterialSystem.h>
  7. using namespace std;
  8. using namespace Assimp;
  9. class MaterialSystemTest : public CPPUNIT_NS :: TestFixture
  10. {
  11. CPPUNIT_TEST_SUITE (MaterialSystemTest);
  12. CPPUNIT_TEST (testFloatProperty);
  13. CPPUNIT_TEST (testFloatArrayProperty);
  14. CPPUNIT_TEST (testIntProperty);
  15. CPPUNIT_TEST (testIntArrayProperty);
  16. CPPUNIT_TEST (testColorProperty);
  17. CPPUNIT_TEST (testStringProperty);
  18. CPPUNIT_TEST_SUITE_END ();
  19. public:
  20. void setUp (void);
  21. void tearDown (void);
  22. protected:
  23. void testFloatProperty (void);
  24. void testFloatArrayProperty (void);
  25. void testIntProperty (void);
  26. void testIntArrayProperty (void);
  27. void testColorProperty (void);
  28. void testStringProperty (void);
  29. private:
  30. aiMaterial* pcMat;
  31. };
  32. #endif