| 304 | } |
| 305 | } |
| 306 | void EventTest::onUnitMorph(Unit unit) |
| 307 | { |
| 308 | BWAssert(onStartCalled==true); |
| 309 | BWAssert(onEndCalled==false); |
| 310 | if (strictEventChecking) |
| 311 | { |
| 312 | BWAssert(isEventExpectedNext(Event::UnitMorph(unit))); |
| 313 | if (!expectedEvents.empty()) |
| 314 | expectedEvents.pop_front(); |
| 315 | } |
| 316 | } |
| 317 | void EventTest::onUnitRenegade(Unit unit) |
| 318 | { |
| 319 | BWAssert(onStartCalled==true); |