private void TakeShots(Game testGame, int expectedHitsTilldestruction) { for (int i = 0; i < 10; i++) { testGame.ALLHostilesAttack(_setup.TestMap); if (_setup.TestMap.Playership.Destroyed) { break; } Assert.LessOrEqual(i, expectedHitsTilldestruction); } }