public void AddBattleShip_NullShip_ShouldReturnFalse()
        {
            //Arrange
            var board         = new Board(10);
            var ship          = default(Battleship);
            var helperService = new GameHelperService();

            //Act
            var result = helperService.AddBattleShip(board, ship);

            //Asset
            Assert.IsFalse(result);
        }
        public void AddBattleShip_NullBoard_ShouldReturnFalse()
        {
            //Arrange
            var board = default(Board);
            var ship  = new Battleship()
            {
                ShipId = 1, Size = 5, StartColumn = 0, StartRow = 0, IsHorizontalDirection = true
            };
            var helperService = new GameHelperService();

            //Act
            var result = helperService.AddBattleShip(board, ship);

            //Asset
            Assert.IsFalse(result);
        }
        public void AddBattleShip_ValidShip_EmptyBoard_ShouldReturnTrue()
        {
            //Arrange
            var board = new Board(10);
            var ship  = new Battleship()
            {
                ShipId = 1, Size = 5, StartColumn = 0, StartRow = 0, IsHorizontalDirection = true
            };
            var helperService = new GameHelperService();

            //Act
            var result        = helperService.AddBattleShip(board, ship);
            var occupiedCells = board.Cells.Where(x => x.IsOccupied == true).ToList();

            //Asset
            Assert.IsTrue(result);
            Assert.AreEqual(ship.Size, occupiedCells.Count);
        }