| 29 | BWAssertF(producerType!=UnitTypes::Unknown,{fail=true;return;}); |
| 30 | } |
| 31 | bool CancelTrainTest::verifyTrainingQueue() |
| 32 | { |
| 33 | BWAssertF(producer!=NULL,{fail=true;return false;}); |
| 34 | UnitType::list actualList = producer->getTrainingQueue(); |
| 35 | BWAssertF(correctTrainingQueue.size() == actualList.size(),{log("Error training queue size %d != %d",correctTrainingQueue.size(),actualList.size());fail=true;return false;}); |
| 36 | BWAssertF(correctTrainingQueue == actualList,{fail=true;return false;}); |
| 37 | return true; |
| 38 | } |
| 39 | void CancelTrainTest::start() |
| 40 | { |
| 41 | if (fail) return; |
nothing calls this directly
no test coverage detected