#include "dota2api/gamemode.cpp"
#include "gtest/gtest.h"

TEST(GameMode, gameModeFromInt)
{
    EXPECT_EQ
        (
         dota2::GameMode::Unknown,
         dota2::gameModeFromInt(-1)
        );
    for(const auto &mode : dota2::gameModes)
    {
        EXPECT_EQ
            (
            mode.second,
            dota2::gameModeFromInt(mode.first)
            );
    }
}

#include "dota2api/gamemode.hpp"
#include "gtest/gtest.h"

TEST(GameMode, gameModeFromInt)
{
    EXPECT_EQ
        (
         dota2::GameMode::Unknown,
         dota2::gameModeFromInt(-1)
        );
    for(const auto &mode : dota2::gameModes)
    {
        EXPECT_EQ
            (
            mode.second,
            dota2::gameModeFromInt(mode.first)
            );
    }
}

Include header file instead of cpp
Include header file instead of cpp
