Exemple #1
0
        public void GetChoiceTest2()
        {
            //Arrange
            PlayerStatitics stats  = new PlayerStatitics();
            Deck            deck   = new Deck();
            IPlayer         player = new AIPlayer(stats, deck, "Bot");

            player.CurrentHand = new List <int>()
            {
                2, 3, 4, 6, 7
            };
            player.PlayerStatistics.ActualMana = 8;

            //Act
            int result = int.Parse(player.GetChoice());

            player.PlayCard(result);
            int result2 = int.Parse(player.GetChoice());

            player.PlayCard(result2);

            //Assert
            Assert.AreEqual(6, result);
            Assert.AreEqual(2, result2);
        }