DarkflameServer/tests/dECSTests/TestECS.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
326 B
C++
Raw Normal View History

#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);
}