public void HitsOn17() { var testDeck = new DeckMock(new[] { new Card(CardFace.Ten, Suit.Hearts), new Card(CardFace.Seven, Suit.Spades), new Card(CardFace.Jack, Suit.Diamonds), }); var hard17Player = new Hard17Player(testDeck); hard17Player.PlayTurn(); Assert.AreEqual(27, hard17Player.HandValue()); }
public void StaysOn20() { var testDeck = new DeckMock(new[] { new Card(CardFace.Ten, Suit.Hearts), new Card(CardFace.Jack, Suit.Spades), new Card(CardFace.Ace, Suit.Diamonds), new Card(CardFace.Five, Suit.Diamonds), }); var hard17Player = new Hard17Player(testDeck); hard17Player.PlayTurn(); Assert.Equal(20, hard17Player.HandValue()); }