Exemple #1
0
        public void CalculateQuestPoints_NoConfigurationSet_ShouldReturnZero()
        {
            var questPointCalculator = new QuestPointCalculator(new GameConfiguration());

            var questPointsEarned = questPointCalculator.CalculateQuestPoints(1, 1);

            questPointsEarned.Should().Be(0);
        }
Exemple #2
0
        public void CalculateQuestPoints_PassingAnyNegativeValue_ShouldReturnZero(int chipsAmountBet, int playerLevel)
        {
            var questPointCalculator = new QuestPointCalculator(_gameConfiguration);

            var questPointsEarned = questPointCalculator.CalculateQuestPoints(chipsAmountBet, playerLevel);

            questPointsEarned.Should().Be(0);
        }
Exemple #3
0
        public void CalculateQuestPoints_PassingCorrectData_ShouldCalcultePointsEarned(int chipsAmountBet, int playerLevel, int questPoints)
        {
            var questPointCalculator = new QuestPointCalculator(_gameConfiguration);

            var questPointsEarned = questPointCalculator.CalculateQuestPoints(chipsAmountBet, playerLevel);

            questPointsEarned.Should().Be(questPoints);
        }