| 130 | } |
| 131 | |
| 132 | void TestUnitCommand::VerifyUnitDoesNotExist(UNIT_TYPEID unit_type) { |
| 133 | const ObservationInterface* obs = agent_->Observation(); |
| 134 | const Units& units = obs->GetUnits(Unit::Alliance::Self); |
| 135 | for (const Unit& unit : units) { |
| 136 | if (unit.unit_type == unit_type) { |
| 137 | ReportError("Unexpected unit exists when it should not."); |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void TestUnitCommand::VerifyUnitIdleAfterOrder(UNIT_TYPEID unit_type) { |
| 143 | bool unit_idled = false; |
nothing calls this directly
no test coverage detected