public void FiveCardCharlieFail() { BlackJackController blackJack = new BlackJackController(1); Deck deck = new Deck(); Deck playerHand = new Deck(true); Card AceSpade = new Card(Suit.SPADES, Face.ACE); Card AceClub = new Card(Suit.CLUBS, Face.ACE); Card AceHeart = new Card(Suit.HEARTS, Face.ACE); playerHand.Return(AceClub); playerHand.Return(AceSpade); playerHand.Return(AceHeart); bool isCharlie = blackJack.FiveCardCharlie(playerHand); Assert.IsFalse(isCharlie); }
public void FiveCardCharliePass() { BlackJackController blackJack = new BlackJackController(1); Deck deck = new Deck(); Deck playerHand = new Deck(true); Card TwoSpade = new Card(Suit.SPADES, Face.TWO); Card TwoClub = new Card(Suit.CLUBS, Face.TWO); Card TwoHeart = new Card(Suit.HEARTS, Face.TWO); Card TwoDiamond = new Card(Suit.DIAMONDS, Face.TWO); Card ThreeSpade = new Card(Suit.SPADES, Face.THREE); playerHand.Return(TwoSpade); playerHand.Return(TwoClub); playerHand.Return(TwoHeart); playerHand.Return(TwoDiamond); playerHand.Return(ThreeSpade); bool isCharlie = blackJack.FiveCardCharlie(playerHand); Assert.IsTrue(isCharlie); }