utMaterialSystem.h 1022 B

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