public void AnullmentMagicTest() { var item = _factory.GetNormal(); AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase); _transmutation.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 AugmentationSuccessTest() { var item = _factory.GetNormal(); AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase); _transmutation.Execute(item, affixManager); if (item.Prefixes.Count + item.Suffixes.Count == 2) { _anullment.Execute(item, affixManager); } Assert.AreEqual(1, item.Prefixes.Count + item.Suffixes.Count); var result = _augmentation.Execute(item, affixManager); Assert.IsTrue(result); Assert.AreEqual(1, item.Prefixes.Count); Assert.AreEqual(1, item.Suffixes.Count); }