コード例 #1
0
        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);
        }
コード例 #4
0
        public void ShouldValidateNotSatisfy()
        {
            //Arrange
            var cards = CardsBuilder.CreateHighCardHandCards();

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

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