示例#1
0
        public void SameCardsShouldGetTie()
        {
            var cards = CardsBuilder.CreateStraightFlushHandCards();

            var result = _evaluator.EvaluateCardsWinner(cards, cards);

            Assert.Equal(GameResult.Tie, result);
        }
示例#2
0
        public void StraightFlushCardAndHighCardsShouldGetStraightFlushWins()
        {
            var blackCards = CardsBuilder.CreateStraightFlushHandCards();

            var whiteCards = CardsBuilder.CreateHighCardHandCards();

            var result = _evaluator.EvaluateCardsWinner(blackCards, whiteCards);

            Assert.Equal(GameResult.BlackWin, result);
        }
        public void ShouldValidateSatisfy()
        {
            //Arrange
            var cards = CardsBuilder.CreateStraightFlushHandCards();

            //Act
            var isSatisfied = _typeValidator.IsSatisfied(cards);

            //Assert
            Assert.Equal(true, isSatisfied);
        }