Ejemplo n.º 1
0
 /// <summary>
 /// Asserts state expectations against an attack result model.
 /// </summary>
 /// <param name="result">The actual attack result.</param>
 /// <param name="isHit">The expected hit state flag.</param>
 /// <param name="isShipSunk">The expected ship sunk state flag.</param>
 /// <param name="isGameOver">The expected game over state flag.</param>
 private static void AssertAttackResult(AttackResult result, bool isHit, bool isShipSunk, bool isGameOver)
 {
     result.Should().NotBeNull();
     result.IsHit.Should().Be(isHit);
     result.IsShipSunk.Should().Be(isShipSunk);
     result.IsGameOver.Should().Be(isGameOver);
 }