public void FindBombs_WhenTwoArround_ReturnTwo() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(2, 1); Assert.AreEqual(2, nbrBomb); }
public void FindBombs_WhenOneArround_ReturnOne() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(0, 0); Assert.AreEqual(1, nbrBomb); }
public void FindBombs_WhenOnABomb_ReturnMinusOne() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(1, 1); Assert.AreEqual(-1, nbrBomb); }
public void FindBombs_WhenOutsideOfMatrix_CoordinateY_ThrowException() { BombsAnalyser analyser = new BombsAnalyser(_bombsMatrix); int nbrBomb = analyser.FindBombs(0, 5); }