mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-11 07:17:09 +00:00
11 lines
326 B
C++
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);
|
|
}
|