Esempio n. 1
0
        public void CheckCellMoveInGridWrap()
        {
            CellCoordinate cell = new CellCoordinate(3, 8);

            Assert.True(cell.MoveToNextCellInGrid());

            Assert.Equal(4, cell.row);
            Assert.Equal(0, cell.column);
        }
Esempio n. 2
0
        public void CheckCellMoveInGridLastCell()
        {
            CellCoordinate cell = new CellCoordinate(8, 8);

            Assert.False(cell.MoveToNextCellInGrid());
        }