Esempio n. 1
0
        public void ShufflingDeck()
        {
            var deckShuffler = new DeckShuffler(_deck.GetDeck());

            Assert.IsNotNull(deckShuffler.GetShuffledDeck());
            foreach (var variable in deckShuffler.GetShuffledDeck())
            {
                Console.WriteLine(variable);
            }
            Console.WriteLine(deckShuffler.GetShuffledDeck().Count);
        }
Esempio n. 2
0
        public void HandOutCards()
        {
            var deckShuffler = new DeckShuffler(_deck.GetDeck());

            Assert.IsNotNull(_deck.GetDeck());
            foreach (var variable in deckShuffler.GetShuffledDeck())
            {
                Console.WriteLine("shuffled" + variable);
            }
            Console.WriteLine(deckShuffler.GetShuffledDeck().Count);
            var deckDealer = new DeckDealer(_playerMaker.GetTeam(), deckShuffler.GetShuffledDeck(), 5);

            Assert.IsNotNull(deckDealer.GetPlayersCards());
            for (var i = 0; i < 5; i++)
            {
                Assert.AreEqual(5, deckDealer.GetPlayersCards()[i].Count);
                Console.WriteLine("gracz {0} ma tyle kart " + deckDealer.GetPlayersCards()[i].Count, i);
                for (var j = 0; j < 5; j++)
                {
                    Console.WriteLine("Karty gracza {0} to " + deckDealer.GetPlayersCards()[i].ElementAt(j), i);
                }
            }
        }
Esempio n. 3
0
 public void TestOfNullExceptionInDeckDealer_MustPass()
 {
     var deckShuffler        = new DeckShuffler(_deck.GetDeck());
     var deckDealerNullTest1 = new DeckDealer(null, deckShuffler.GetShuffledDeck(), 5);
 }
Esempio n. 4
0
 public void TestOfHandOutExceptionInDeckDealer2_MustPass()
 {
     var deckShuffler   = new DeckShuffler(_deck.GetDeck());
     var deckDealerTest = new DeckDealer(_playerMaker.GetTeam(), deckShuffler.GetShuffledDeck(), 0);
 }