public void TestDeck52Cards_Deal_1() { Deck52Cards deck = new Deck52Cards(); deck.Deal(); Assert.Equal(51, deck.GetCards().Count); }
private void DealHandCard(bool isFirstCard) { var occupiedSeats = Table.GetOccupiedSeatsOrderByToBeDealt(); foreach (var seat in occupiedSeats) { if (isFirstCard) { seat.Hand = new HoleCards(); seat.Hand.FirstCard = Deck.Deal(); } else { seat.Hand.SecondCard = Deck.Deal(); } } }