Exemple #1
0
        public void HasEmptySurroundingCells_ReturnsTrue_RightEmpty()
        {
            int emptyX = 2;
            int emptyY = 4;

            this.matrix[emptyX, emptyY] = 0;

            bool isRightEmpty = MatrixWalk.HasEmptySurroundingCells(this.matrix, this.cell);

            Assert.IsTrue(isRightEmpty);
        }
Exemple #2
0
        public void HasEmptySurroundingCells_ReturnsTrue_BottomEmpty()
        {
            int emptyX = 3;
            int emptyY = 3;

            this.matrix[emptyX, emptyY] = 0;

            bool isBottomRmpty = MatrixWalk.HasEmptySurroundingCells(this.matrix, this.cell);

            Assert.IsTrue(isBottomRmpty);
        }
Exemple #3
0
        public void HasEmptySurroundingCells_ReturnsFalse_NoCellFound()
        {
            bool isEmpty = MatrixWalk.HasEmptySurroundingCells(this.matrix, this.cell);

            Assert.IsFalse(isEmpty);
        }