public void TestingCountingTheBombsAroundSafeCells() { testGame = new Game(9, 9, 10, true); Assert.AreEqual(3, testGame.countBombs(1)); Assert.AreEqual(1, testGame.countBombs(79)); }
public void shootTest() { Game target = new Game(); UserAccount user = new UserAccount("Player", 1); Field field = new Field(5, 5); target.shoot(user, field); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void TestingRandomlyGeneratedBombsPLacing() { testGame = new Game(9, 9, 10, false); int temp = testGame.testRandom(); bool state = false; if (temp > 70) state = true; Assert.AreEqual(false, state); }