public void FossilCombinedModifiersDoubleFossilTest() { var equipment = _currencyTestHelper.GetTestItem(); var currency = _currencyTestHelper.CurrencyFactory.GetFossilCraftByNames(new List <string>() { "Scorched Fossil", "Frigid Fossil" }) as PoeCraftLib.Currency.Currency.Currency; var affixManager = _currencyTestHelper.GetAffixManager(equipment); var spent = currency.Execute(equipment, affixManager); Assert.AreEqual(1, spent["Scorched Fossil"]); Assert.AreEqual(1, spent["Frigid Fossil"]); Assert.AreEqual(1, spent["Potent Alchemical Resonator"]); Assert.IsFalse(currency.CurrencyModifiers.RollsLucky); Assert.AreEqual(0, currency.CurrencyModifiers.ExplicitWeightModifiers["cold"]); Assert.AreEqual(0, currency.CurrencyModifiers.ExplicitWeightModifiers["fire"]); Assert.AreEqual(100, currency.CurrencyModifiers.ItemLevelRestriction); Assert.IsTrue(currency.CurrencyModifiers.AddedExplicits.Count > 0); }
public void MasterCraftMatchingAffixGroupFailureTest() { var equipment = _currencyTestHelper.GetTestItemByItemClass("Two Hand Sword"); equipment.Rarity = EquipmentRarity.Rare; var affixManager = _currencyTestHelper.GetAffixManager(equipment); var affixes = _currencyTestHelper.AffixFactory.GetAffixesForItem(equipment.ItemBase.Tags, equipment.ItemBase.ItemClass, 84); var physAffix = affixes.First(x => x.Group == "PhysicalDamage"); var stat = StatFactory.AffixToStat(_currencyTestHelper.Random, equipment, physAffix); equipment.Stats.Add(stat); var spent = _currencyTestHelper.TestCurrency("LocalPhysicalDamage1", equipment); Assert.AreEqual(1, equipment.Stats.Count); Assert.IsFalse(spent.Any()); }