Beispiel #1
0
        public void UsingFunctionPlaceEmptyCellShouldReturn0()
        {
            var cell = new Cell();

            var result = cell.placeEmptyCell();

            Assert.AreEqual(0, result);
        }
Beispiel #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);
        }