Пример #1
0
        public void GetCell_TestWithValidCellPosition()
        {
            int             gridRows = 10, gridCols = 10, minesCount = 4;
            MinesweeperGrid grid = new MinesweeperGrid(gridRows, gridCols, minesCount);
            MinesweeperCell cell = grid.GetCell(1, 1);

            Assert.AreEqual(MinesweeperCell.EmptyCell, cell.Value);
        }
Пример #2
0
 public void GetCell_TestWithInvalidCellPosition_ShouldThrowException()
 {
     int             gridRows = 10, gridCols = 10, minesCount = 4;
     MinesweeperGrid grid = new MinesweeperGrid(gridRows, gridCols, minesCount);
     MinesweeperCell cell = grid.GetCell(10, 1);
 }