public void FindBombs_WhenOnABomb_ReturnMinusOne() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(1, 1); Assert.AreEqual(-1, nbrBomb); }
public void FindBombs_WhenNoneArround_ReturnZero() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(3, 0); Assert.AreEqual(0, nbrBomb); }
public void FindBombs_WhenTwoArround_ReturnTwo() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(2, 1); Assert.AreEqual(2, nbrBomb); }
public void FindBombs_WhenOutsideOfMatrix_CoordinateXandY_ThrowException() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(9, 9); }