public void ProductionEventSuccess() { FactoryProduction p = null; foreach (GameEvent e in _tm.GetQueuedEvents()) { if (e is FactoryProduction) { p = (FactoryProduction)e; break; } } var player = _f.GetComponent <DrillerCarrier>().GetOwner(); var totalDrillers = _game.TimeMachine.GetState().GetPlayerDrillerCount(player); var drillerCap = _game.TimeMachine.GetState().GetPlayerDrillerCapacity(player); Assert.IsNotNull(p); Assert.IsTrue(totalDrillers < drillerCap); _tm.GoTo(p.GetOccursAt().Advance(10)); Assert.IsTrue(_tm.GetCurrentTick().GetTick() > p.GetOccursAt().GetTick()); Assert.IsTrue(p.WasEventSuccessful()); }