// // Created by Teo-CD on 06/06/19. // #include #include #include "Game.h" TEST(Setup,LevelSetup) { // TODO : Think about parsing from file ? Currently cumbersome and error-prone std::vector textures = {"Head_Boy.png","Head_Significant_Boy.png","Building.png"}; std::vector levels = {"test_level.xml"}; Game game(levels,textures); ASSERT_FALSE(game); game.loadLevel(0); ASSERT_TRUE(game); game.runGame(); } int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc,argv); return RUN_ALL_TESTS(); }