Ejemplo n.º 1
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);
         }
     }
 }