assimp/test/unit/utMaterialSystem.h

46 lines
1018 B
C
Raw Normal View History

#ifndef TESTMATERIALS_H
#define TESTMATERIALS_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <aiTypes.h>
#include <aiMesh.h>
#include <aiScene.h>
#include <MaterialSystem.h>
using namespace std;
using namespace Assimp;
class MaterialSystemTest : public CPPUNIT_NS :: TestFixture
{
CPPUNIT_TEST_SUITE (MaterialSystemTest);
CPPUNIT_TEST (testFloatProperty);
CPPUNIT_TEST (testFloatArrayProperty);
CPPUNIT_TEST (testIntProperty);
CPPUNIT_TEST (testIntArrayProperty);
CPPUNIT_TEST (testColorProperty);
CPPUNIT_TEST (testStringProperty);
CPPUNIT_TEST_SUITE_END ();
public:
void setUp (void);
void tearDown (void);
protected:
void testFloatProperty (void);
void testFloatArrayProperty (void);
void testIntProperty (void);
void testIntArrayProperty (void);
void testColorProperty (void);
void testStringProperty (void);
private:
aiMaterial* pcMat;
};
#endif