public void HasInvalidAlchemistPerk() { Request.AlchemistPerkRank = 0; TestAndAssert(); PotionBuilder.Verify(x => x.Perk(It.IsAny <AlchemistPerk>()), Times.Never); }
public void HasValidAlchemistPerk(int alchemistRank) { Request.AlchemistPerkRank = alchemistRank; TestAndAssert(); PotionBuilder.Verify(x => x.Perk(It.Is <AlchemistPerk>(y => y.Rank == alchemistRank)), Times.Once); }
public void HasPoisonerPerk() { Request.HasPoisonerPerk = true; TestAndAssert(); PotionBuilder.Verify(x => x.Perk(It.IsAny <PoisonerPerk>()), Times.Once); }
public void VariousFortifyAlchemyPercent(decimal fortifyAlchemyPercent) { Request.FortifyAlchemyPercent = fortifyAlchemyPercent; TestAndAssert(); PotionBuilder.Verify(x => x.FortifyAlchemyPercent(fortifyAlchemyPercent), Times.Once); }
public void VariousAlchemyLevel(int alchemyLevel) { Request.AlchemyLevel = alchemyLevel; TestAndAssert(); PotionBuilder.Verify(x => x.AlchemyLevel(alchemyLevel), Times.Once); }
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); } }