DarkflameServer/tests/dECSTests/TestECS.cpp
2024-12-14 13:47:35 -06:00

11 lines
326 B
C++

#include <gtest/gtest.h>
#include "ECS.h"
TEST(ECSTest, MakeStorage) {
const auto storage = Component::Storage<Component::Pet>();
const Component::IStorage* const storagePtr = &storage;
ASSERT_EQ(storagePtr->GetKind(), Component::Kind::PET);
ASSERT_NE(storagePtr->GetKind(), Component::Kind::DESTROYABLE);
}