コード例 #1
0
        public void FaceCardsShouldBeTen()
        {
            var faceCardKing = new Card()
            {
                CardNumber = 1, Suit = Model.EnumTypes.SuitType.Clubs, Value = 13, Face = Model.EnumTypes.FaceType.King
            };
            var faceCardQueen = new Card()
            {
                CardNumber = 1, Suit = Model.EnumTypes.SuitType.Clubs, Value = 12, Face = Model.EnumTypes.FaceType.Queen
            };
            var faceCardJack = new Card()
            {
                CardNumber = 1, Suit = Model.EnumTypes.SuitType.Clubs, Value = 11, Face = Model.EnumTypes.FaceType.Jack
            };

            var facecards = new List <Card>();

            facecards.Add(faceCardKing);
            facecards.Add(faceCardQueen);
            facecards.Add(faceCardJack);

            var expected = 10;

            var result = _gameCommands.FindFaceCards(facecards);

            Assert.AreEqual(expected, result[0].Value);
            Assert.AreEqual(expected, result[1].Value);
            Assert.AreEqual(expected, result[2].Value);
        }