public void HitVerticalShip() { var ship = new Destroyer(Direction.Vertical, 1, 1); var result = ship.Attack(1, 2); Assert.AreEqual(true, result); }
public void MissVerticalShip() { var ship = new Destroyer(Direction.Vertical, 1, 1); var result = ship.Attack(2, 1); Assert.AreEqual(false, result); }
public void MissHorizontalShip() { var ship = new Destroyer(Direction.Horizontal, 1, 1); var result = ship.Attack(3, 1); Assert.AreEqual(false, result); }
public void NotDestroyShip() { var ship = new Destroyer(Direction.Horizontal, 1, 1); ship.Attack(1, 1); var result = ship.IsDestroyed; Assert.AreEqual(false, result); }