Example #1
0
        public void HasInvalidAlchemistPerk()
        {
            Request.AlchemistPerkRank = 0;
            TestAndAssert();

            PotionBuilder.Verify(x => x.Perk(It.IsAny <AlchemistPerk>()), Times.Never);
        }
Example #2
0
        public void HasValidAlchemistPerk(int alchemistRank)
        {
            Request.AlchemistPerkRank = alchemistRank;
            TestAndAssert();

            PotionBuilder.Verify(x => x.Perk(It.Is <AlchemistPerk>(y => y.Rank == alchemistRank)), Times.Once);
        }
Example #3
0
        public void HasPoisonerPerk()
        {
            Request.HasPoisonerPerk = true;
            TestAndAssert();

            PotionBuilder.Verify(x => x.Perk(It.IsAny <PoisonerPerk>()), Times.Once);
        }
Example #4
0
        public void VariousFortifyAlchemyPercent(decimal fortifyAlchemyPercent)
        {
            Request.FortifyAlchemyPercent = fortifyAlchemyPercent;
            TestAndAssert();

            PotionBuilder.Verify(x => x.FortifyAlchemyPercent(fortifyAlchemyPercent), Times.Once);
        }
Example #5
0
        public void VariousAlchemyLevel(int alchemyLevel)
        {
            Request.AlchemyLevel = alchemyLevel;
            TestAndAssert();

            PotionBuilder.Verify(x => x.AlchemyLevel(alchemyLevel), Times.Once);
        }
Example #6
0
        public void Ingredients(IEnumerable <string> ingredientIds)
        {
            Request.IngredientIds = ingredientIds;
            TestAndAssert();

            foreach (var id in ingredientIds)
            {
                PotionBuilder.Verify(x => x.Ingredient(It.Is <IIngredient>(y => y.Id == id)), Times.Once);
            }
        }