public void AfterDealingDamageFiveTimesToBattleship_ItIsDestroyed() { var ship = new Battleship(); for (int i = 0; i < ship.Length; i++) { Assert.False(ship.IsDestroyed()); ship.DealDamage(); } Assert.True(ship.IsDestroyed()); }
public void AfterDealingDamageFiveTimesToBattleship_ItIsDestroyed() { var ship = new Battleship(); for (int i = 0; i < ship.Length; i++) { Assert.False(ship.IsDestroyed()); ship.DealDamage(); } Assert.True(ship.IsDestroyed()); }