public void dealer_hand_returns_null_as_face_up_card_if_only_one_card_in_hand() { // Arrange var hand = new DealerHand(); var card1 = Substitute.For<IBlackjackCard>(); hand.AddCard(card1); // Act var faceUpCard = hand.GetFaceUpCard(); // Assert faceUpCard.Should().Be.Null(); }
public void dealer_hand_returns_second_card_as_face_up_card() { // Arrange var hand = new DealerHand(); var card1 = Substitute.For<IBlackjackCard>(); var card2 = Substitute.For<IBlackjackCard>(); hand.AddCard(card1); hand.AddCard(card2); // Act var faceUpCard = hand.GetFaceUpCard(); // Assert faceUpCard.Should().Not.Be.Null(); faceUpCard.Should().Be.SameAs(card2); }