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); } } }
public void TestOfHandOutExceptionInDeckDealer2_MustPass() { var deckShuffler = new DeckShuffler(_deck.GetDeck()); var deckDealerTest = new DeckDealer(_playerMaker.GetTeam(), deckShuffler.GetShuffledDeck(), 0); }
public void TestOfNullExceptionInDeckDealer_MustPass() { var deckShuffler = new DeckShuffler(_deck.GetDeck()); var deckDealerNullTest1 = new DeckDealer(null,deckShuffler.GetShuffledDeck(),5); }
public void TestOfNullExceptionInDeckDealer2_MustPass() { var deckShuffler = new DeckShuffler(_deck.GetDeck()); var deckDealerNullTest2 = new DeckDealer(_playerMaker.GetTeam(), null, 5); }