| 240 | } |
| 241 | |
| 242 | void CancelTrainTest::stop() |
| 243 | { |
| 244 | if (fail == true) return; |
| 245 | BWAssertF(producer!=NULL,{fail=true;return;}); |
| 246 | BWAssertF(producer->isConstructing()==false,{fail=true;return;}); |
| 247 | BWAssertF(producer->isIdle()==true,{fail=true;return;}); |
| 248 | BWAssertF(producer->isLifted()==false,{fail=true;return;}); |
| 249 | BWAssertF(producer->isTraining()==false,{fail=true;return;}); |
| 250 | BWAssertF(producer->getTrainingQueue().empty()==true,{fail=true;return;}); |
| 251 | BWAssertF(Broodwar->self()->minerals() == originalMineralCount,{fail=true;return;}); |
| 252 | BWAssertF(Broodwar->self()->gas() == originalGasCount,{fail=true;return;}); |
| 253 | BWAssertF(Broodwar->self()->supplyUsed() == originalSupplyUsedCount,{fail=true;return;}); |
| 254 | BWAssertF(Broodwar->self()->allUnitCount(unitType1) == originalAllUnit1Count,{fail=true;return;}); |
| 255 | BWAssertF(Broodwar->self()->allUnitCount(unitType2) == originalAllUnit2Count,{fail=true;return;}); |
| 256 | BWAssertF(Broodwar->self()->allUnitCount(unitType3) == originalAllUnit3Count,{fail=true;return;}); |
| 257 | } |
nothing calls this directly
no test coverage detected