public bool CanUseOnRare(ICurrency currency) { var item = _factory.GetNormal(); AffixManager affixManager = CreateAffixManager(item.ItemBase); _alchemy.Execute(item, affixManager); return(currency.Execute(item, affixManager)); }
public void VaalRareTest() { var item = _factory.GetNormal(); AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase); _alchemy.Execute(item, affixManager); var result = _vaal.Execute(item, affixManager); Assert.IsTrue(result); Assert.IsTrue(item.Corrupted); }
public void AlchemySuccessTest() { var item = _factory.GetNormal(); AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase); var result = _alchemy.Execute(item, affixManager); Assert.IsTrue(result); Assert.IsTrue(item.Suffixes.Count >= 1); Assert.IsTrue(item.Prefixes.Count >= 1); Assert.AreEqual(EquipmentRarity.Rare, item.Rarity); }
public void AnullmentRareTest() { var item = _factory.GetNormal(); AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase); _alchemy.Execute(item, affixManager); var oldAffixCount = item.Prefixes.Count + item.Suffixes.Count; var result = _anullment.Execute(item, affixManager); Assert.IsTrue(result); var newAffixCount = item.Prefixes.Count + item.Suffixes.Count; Assert.AreEqual(oldAffixCount, newAffixCount + 1); }
public void ExaltedTooManyAffixesTest() { var item = _factory.GetNormal(); AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase); _alchemy.Execute(item, affixManager); _exalted.Execute(item, affixManager); _exalted.Execute(item, affixManager); _exalted.Execute(item, affixManager); var result = _exalted.Execute(item, affixManager); Assert.IsFalse(result); }