Example #1
0
        public void UsingFunctionPlaceMineShouldReturnStar()
        {
            var cell = new Cell();

            var result = cell.placeMine();

            Assert.AreEqual("*", result);
        }
Example #2
0
        public void EmptyCellShouldReturnTrueAndMineCellShouldReturnFalse()
        {
            var cell = new Cell();

            cell.placeEmptyCell();
            var resultEmptyCell = cell.CurrentState;

            cell.placeMine();
            var resultMineCell = cell.CurrentState;

            Assert.AreEqual(false, resultEmptyCell);
            Assert.AreEqual(true, resultMineCell);
        }