6 new tests for CapturePointSystem have been created!

TODO: refactor CapturePointSystem
This commit is contained in:
verysecrethero
2016-01-13 14:37:56 +01:00
parent 7a8604bf2b
commit ed5ac2e923
2 changed files with 354 additions and 31 deletions
+15 -1
View File
@@ -27,6 +27,20 @@ public:
void Tick();
bool TestSucceeded = false;
int NumLoops = 0;
void TestSetup1_OnePlayerOnCapturePoint();
void TestSetup2_TwoPlayersOnCapturePoint();
void TestSetup3_NoPlayersOnCapturePoint();
void TestSetup4_TwoCapturePointsBeingCaptured();
void TestSetup5_SameCapturePointContestedAndTakenOver();
void TestSetup6_Team1CapturedTheLastPointAndWon();
void TestSuccess1();
void TestSuccess2();
void TestSuccess3();
void TestSuccess4();
void TestSuccess5();
void TestSuccess6();
private:
double m_LastTime;
@@ -34,7 +48,7 @@ private:
EventBroker* m_EventBroker;
World* m_World;
SystemPipeline* m_SystemPipeline;
int m_PlayerID, m_PlayerID2, m_CapturePointID, m_CapturePointID2;
int m_PlayerID, m_PlayerID2, m_CapturePointID, m_CapturePointID2, m_CapturePointID3;
int m_RunTestNumber;
};