public void FireMissileDuplicateHit(GameSettings gameSettings) { PlayersBoard _playersBoard = new PlayersBoard(gameSettings); Coordinate _coordinate = new Coordinate { X = 0, Y = 0 }; _playersBoard.FireMissile(_coordinate); //first shot updates status to hit Assert.True(_playersBoard.FireMissile(null) == PlayersBoard.MissileResponse.Wasted); }
public void FireMissileWastedDuplicate(GameSettings gameSettings) { PlayersBoard _playersBoard = new PlayersBoard(gameSettings); Coordinate _coordinate = new Coordinate { X = 0, Y = 0 }; //first shot will record missile already fired at coord _playersBoard.FireMissile(_coordinate); Assert.True(_playersBoard.FireMissile(_coordinate) == PlayersBoard.MissileResponse.Wasted); }
public void FireMissileValid(int xCoord, int yCoord) { PlayersBoard _playersBoard = new PlayersBoard(); Assert.True(_playersBoard.FireMissile(new Coordinate { X = xCoord, Y = yCoord }) == PlayersBoard.MissileResponse.Invalid); }
public void GetBoardStatusComplete(GameSettings gameSettings) { PlayersBoard _playersBoard = new PlayersBoard(gameSettings); _playersBoard.FireMissile(new Coordinate { X = 0, Y = 0 }); Assert.True(_playersBoard.GetBoardStatus() == PlayersBoard.BoardStatus.Complete); }
public void AutoFireMissileHit(GameSettings gameSettings) { PlayersBoard _playersBoard = new PlayersBoard(gameSettings); Assert.True(_playersBoard.FireMissile(null) == PlayersBoard.MissileResponse.Hit); }