The tests seems to work under boost 1.59 but test explorer window is broken in 1.60. also changed ResourceManagerTest.cpp

This commit is contained in:
verysecrethero
2015-12-18 11:37:02 +01:00
parent 13f7fb2561
commit 1e5e24a036
6 changed files with 38 additions and 60 deletions
+2 -22
View File
@@ -1,25 +1,15 @@
#include <boost/test/unit_test.hpp>
#include "Core/World.h"
//private->public hack doesnt work, tons of link errors
//so there is currently no good way to test this class
//#define private public
#include "Core/ResourceManager.h"
#include "Core/ConfigFile.h"
#include "Rendering/Renderer.h"
#include "Core/EntityXMLFile.h"
#include "Engine\Rendering\Texture.h"
//#include "Core/EventBroker.h"
//#include "Core/InputManager.h"
//#include "GUI/Frame.h"
//#include "Rendering/RenderQueueFactory.h"
//#include "Core/EKeyDown.h"
//#include "Core/SystemPipeline.h"
//#include "RaptorCopterSystem.h"
BOOST_AUTO_TEST_SUITE(resourceManagerTests)
BOOST_AUTO_TEST_CASE(resourceManagerTest)
@@ -28,10 +18,6 @@ BOOST_AUTO_TEST_CASE(resourceManagerTest)
//private static metoder/variabler
//ugly private->public hack doesnt work, tons of link errors. hence cant test it properly
//its not my job to implement testfunctions for unittests in the class either
//craptests ahead:
ResourceManager::RegisterType<ConfigFile>("ConfigFile");
BOOST_CHECK(!ResourceManager::IsResourceLoaded("ConfigFile", "Config.ini"));
auto m_Config = ResourceManager::Load<ConfigFile>("Config.ini");
@@ -45,12 +31,6 @@ BOOST_AUTO_TEST_CASE(resourceManagerTest)
BOOST_CHECK(!ResourceManager::IsResourceLoaded("Model", "Models/Core/ScreenQuad.obj"));
//there is no error feedback to check if you try to release the wrong resources - hence that cant be tested either
//registertype (bind with function)
//m_CompilerTypenameToResourceType = global...
//m_FactoryFunctions = global...
//BOOST_CHECK(ResourceManager::m_CompilerTypenameToResourceType.size() != 0);
//BOOST_CHECK(ResourceManager::m_FactoryFunctions.size() != 0);
}
BOOST_AUTO_TEST_SUITE_END()