コード例 #1
0
 public void ShouldRemoveDeadExplosionInATick()
 {
     var explosion = new Explosion(20, 22);
     _battlefield.Add(explosion);
     for (var i = 0;i<16;i++)
         explosion.Tick();
     _battlefield.Tick();
     Assert.That(_battlefield.NewExplosions.Count,Is.EqualTo(0));
     Assert.That(_battlefield.Explosions.Count, Is.EqualTo(0));
 }