public void CreateOceanBoard_validateBoardTypeCreated() { BoardType ocean = BoardType.OceanBoard; OceanBoard oceanBoard = new OceanBoard(); Assert.Equal(oceanBoard.BoardType, ocean); }
public void DrawBoard_returnsCellCount() { OceanBoard oceanBoard = new OceanBoard(); oceanBoard.DrawBoard(); int cellCount = 100; Assert.Equal(oceanBoard.Cells.Count, cellCount); }
public Player(string name) { Name = name; TargetBoard = new TargetBoard(); OceanBoard = new OceanBoard(); Fleet = new List <Ship>() { new Battleship(), new Carrier(), new Cruiser(), new Destroyer(), new Submarine() }; }
public void CreateBoard() { OceanBoard.DrawBoard(); TargetBoard.DrawBoard(); }
public void ClearBoard() { OceanBoard.Coor = new Dictionary <string, int>(); OceanBoard.InitBoard(); }