Files
XCEngine/tests/Resources/Mesh/test_mesh.cpp

34 lines
717 B
C++
Raw Normal View History

#include <gtest/gtest.h>
#include <XCEngine/Resources/Mesh/Mesh.h>
#include <XCEngine/Core/Asset/ResourceTypes.h>
#include <XCEngine/Core/Asset/ResourceManager.h>
using namespace XCEngine::Resources;
namespace {
TEST(Mesh, DefaultConstructor) {
Mesh mesh;
EXPECT_EQ(mesh.GetVertexCount(), 0u);
EXPECT_EQ(mesh.GetIndexCount(), 0u);
EXPECT_EQ(mesh.GetVertexStride(), 0u);
EXPECT_FALSE(mesh.IsUse32BitIndex());
}
TEST(Mesh, GetType) {
Mesh mesh;
EXPECT_EQ(mesh.GetType(), ResourceType::Mesh);
}
TEST(Mesh, GetMemorySize) {
Mesh mesh;
EXPECT_EQ(mesh.GetMemorySize(), 0u);
}
TEST(Mesh, GetSections) {
Mesh mesh;
EXPECT_EQ(mesh.GetSections().Size(), 0u);
}
} // namespace