public void ShouldCalculateCorrectPints()
        {
            //Arrange
            var cards = CardsBuilder.CreateHighCardHandCards();

            CardsBuilder.CreateFourOfAKindHandCards();
        }
예제 #2
0
        public void FourOfAKindAndHighCardsShouldGetFourOfAKindWins()
        {
            var blackCards = CardsBuilder.CreateFourOfAKindHandCards();

            var whiteCards = CardsBuilder.CreateHighCardHandCards();

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

            Assert.Equal(GameResult.BlackWin, result);
        }
예제 #3
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 ShouldValidateNotSatisfy()
        {
            //Arrange
            var cards = CardsBuilder.CreateHighCardHandCards();

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

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