public void TestCellCanBeRevealedJustOnce()
 {
     var cell = new MinesweeperCell();
     cell.IsRevealed = true;
     cell.IsRevealed = false;
     Assert.AreEqual(cell.IsRevealed, true, "Cell can be set to not revealed!");
 }
 public void TestCellCannotBeRevealedIfProtected()
 {
     var cell = new MinesweeperCell();
     cell.IsProtected = true;
     cell.IsRevealed = true;
     Assert.AreEqual(cell.IsRevealed, false, "Cell can be revealed if it is protected!");
 }
 public void TestCreateNewCellAndExpectThatAllValuesAreFalse()
 {
     var cell = new MinesweeperCell();
     Assert.AreEqual(
         cell.HasBomb || cell.IsProtected || cell.IsRevealed,
         false,
         "Not all initial velues are false!");
 }
 public void TestBombCannotBeRemoved()
 {
     var cell = new MinesweeperCell();
     cell.HasBomb = true;
     cell.HasBomb = false;
 }