Fixes tests

This was SVN commit r14126.
This commit is contained in:
historic_bruno 2013-11-10 03:24:29 +00:00
parent 37cedb8133
commit 174f636fd2

View File

@ -1,8 +1,15 @@
Engine.LoadHelperScript("ValueModification.js");
Engine.LoadComponentScript("Player.js");
Engine.LoadComponentScript("interfaces/EndGameManager.js")
Engine.LoadComponentScript("interfaces/TechnologyManager.js")
Engine.LoadComponentScript("interfaces/Timer.js")
Engine.LoadComponentScript("EndGameManager.js")
Engine.LoadComponentScript("Player.js");
Engine.LoadComponentScript("Timer.js")
var cmp = ConstructComponent(10, "Player");
ConstructComponent(SYSTEM_ENTITY, "EndGameManager");
ConstructComponent(SYSTEM_ENTITY, "Timer");
TS_ASSERT_EQUALS(cmp.GetPopulationCount(), 0);
TS_ASSERT_EQUALS(cmp.GetPopulationLimit(), 0);
var cmpPlayer = ConstructComponent(10, "Player");
TS_ASSERT_EQUALS(cmpPlayer.GetPopulationCount(), 0);
TS_ASSERT_EQUALS(cmpPlayer.GetPopulationLimit(), 0);