Refactor COB import test to not use a class
parent
a50b94dd63
commit
26a80bb019
|
@ -43,22 +43,17 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include "UnitTestPCH.h"
|
#include "UnitTestPCH.h"
|
||||||
#include "SceneDiffer.h"
|
#include "SceneDiffer.h"
|
||||||
#include "AbstractImportExportBase.h"
|
|
||||||
|
|
||||||
#include <assimp/Importer.hpp>
|
#include <assimp/Importer.hpp>
|
||||||
#include <assimp/postprocess.h>
|
#include <assimp/postprocess.h>
|
||||||
|
|
||||||
using namespace Assimp;
|
using namespace Assimp;
|
||||||
|
|
||||||
class utCOBImportExport : public AbstractImportExportBase {
|
|
||||||
public:
|
|
||||||
virtual bool importerTest() {
|
|
||||||
Assimp::Importer importer;
|
|
||||||
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/COB/molecule.cob", aiProcess_ValidateDataStructure);
|
|
||||||
return nullptr != scene;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
TEST_F(utCOBImportExport, importAMFFromFileTest) {
|
TEST(utCOBImporter, importMolecule) {
|
||||||
EXPECT_TRUE(importerTest());
|
Assimp::Importer importer;
|
||||||
|
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/COB/molecule.cob", aiProcess_ValidateDataStructure);
|
||||||
|
ASSERT_NE(nullptr, scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue