Add backpack editor startup scene
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <XCEngine/Core/Asset/ResourceManager.h>
|
||||
#include <XCEngine/Resources/Mesh/MeshLoader.h>
|
||||
#include <XCEngine/Resources/Mesh/MeshImportSettings.h>
|
||||
#include <XCEngine/Resources/Material/Material.h>
|
||||
@@ -43,6 +44,16 @@ TEST(MeshLoader, LoadInvalidPath) {
|
||||
EXPECT_FALSE(result);
|
||||
}
|
||||
|
||||
TEST(MeshLoader, ResourceManagerRegistersMeshAndTextureLoaders) {
|
||||
ResourceManager& manager = ResourceManager::Get();
|
||||
manager.Initialize();
|
||||
|
||||
EXPECT_NE(manager.GetLoader(ResourceType::Mesh), nullptr);
|
||||
EXPECT_NE(manager.GetLoader(ResourceType::Texture), nullptr);
|
||||
|
||||
manager.Shutdown();
|
||||
}
|
||||
|
||||
TEST(MeshLoader, LoadValidObjMesh) {
|
||||
MeshLoader loader;
|
||||
const std::string path = GetMeshFixturePath("triangle.obj");
|
||||
|
||||
Reference in New Issue
Block a user