Beispiel #1
0
        public void HasLost_ShouldReturnFals_IfAllShipNotSunk()
        {
            //arrange
            var player = new Player("Test Player");
            var ship   = ShipFactory.NewCruiser();

            var coordinate = new Coordinate(5, 1);

            player.AddShip(ship, coordinate, Direction.Horizontal);

            //act
            var result = player.TakeAttack(new Coordinate(5, 1));

            player.TakeAttack(new Coordinate(5, 2));

            Assert.IsFalse(player.HasLost());
        }