Пример #1
0
        public void Test_SetCardValue_SetsTheValueToTen_WhenGivenAKingCard()
        {
            //Arrange
            testCard = new Card(Suit.Hearts, Face.King, false);
            testFace = Face.King;
            expectedValue = 10;

            //Act
            actualValue = testCard.SetCardValue(testFace, false);

            //Assert
            Assert.AreEqual(expectedValue, actualValue);
        }
Пример #2
0
        public void Test_SetCardValue_SetsValueOfToEleven_WhenGivenAnAceAndAcesAreHigh()
        {
            //Arrange
            testCard = new Card(Suit.Spades, Face.Ace, false);
            testFace = Face.Ace;
            bool acesAreHigh = true;
            expectedValue = 11;

            //Act
            actualValue = testCard.SetCardValue(testFace, acesAreHigh);

            //Assert
            Assert.AreEqual(expectedValue, actualValue);
        }