public void Round_Controller_Test_Deck_Initialisation() { controller = freshController; controller.ConnectToGame(roleA, cardsA); Assert.AreEqual(cardsA, controller.getPlayerACards()); // We need to reset PlayersConnected, because otherwise we would trigger // the Setup method --> not part of this test. controller.setPlayersConnected(0); controller.ConnectToGame(roleB, cardsB); Assert.AreEqual(cardsB, controller.getPlayerBCards()); }
public void Round_Controller_Test_Draw_Card() { // GameObject.Instantiate("GameManager"); controller = freshController; controller.ConnectToGame(roleA, cardsA); controller.setPlayersConnected(0); controller.ConnectToGame(roleB, cardsB); controller.DrawCard(roleA); controller.DrawCard(roleB); Assert.AreEqual(1, controller.getPlayerACardID()); Assert.AreEqual(3, controller.getPlayerBCardID()); Assert.AreEqual(new [] { 2, 3 }, controller.getPlayerACards()); Assert.AreEqual(new [] { 2, 1 }, controller.getPlayerBCards()); }