示例#1
0
        public void BSChangeFromPlayerOneToPlayerTwoAndBackAgain()
        {
            BattleShips battleShipsTest = new BattleShips();

            battleShipsTest.EndTurn();
            Assert.AreEqual(1, battleShipsTest.battleShipCurrentPlayer);
            Assert.AreEqual(0, battleShipsTest.battleShipOppositePlayer);
            battleShipsTest.EndTurn();
            Assert.AreEqual(0, battleShipsTest.battleShipCurrentPlayer);
            Assert.AreEqual(1, battleShipsTest.battleShipOppositePlayer);
        }