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); }
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); }
public void HasEmptySurroundingCells_ReturnsFalse_NoCellFound() { bool isEmpty = MatrixWalk.HasEmptySurroundingCells(this.matrix, this.cell); Assert.IsFalse(isEmpty); }