return nullptr != scene;
}
+#ifndef ASSIMP_BUILD_NO_EXPORT
+
virtual bool exporterTest() {
::Assimp::Importer importer;
::Assimp::Exporter exporter;
return true;
}
+#endif // ASSIMP_BUILD_NO_EXPORT
+
protected:
::Assimp::Importer *m_im;
aiScene *m_expectedScene;
EXPECT_TRUE( importerTest() );
}
+#ifndef ASSIMP_BUILD_NO_EXPORT
+
TEST_F( utObjImportExport, exportObjFromFileTest ) {
EXPECT_TRUE( exporterTest() );
}
+#endif // ASSIMP_BUILD_NO_EXPORT
+
TEST_F( utObjImportExport, obj_import_test ) {
const aiScene *scene = m_im->ReadFileFromMemory( (void*) ObjModel.c_str(), ObjModel.size(), 0 );
aiScene *expected = createScene();