示例#1
0
        public void VaalNormalTest()
        {
            var          item         = _factory.GetNormal();
            AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase);
            var          result       = _vaal.Execute(item, affixManager);

            Assert.IsTrue(result);
            Assert.IsTrue(item.Corrupted);
        }
示例#2
0
        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);
        }
示例#3
0
        public void ScouringRareSuccessTest()
        {
            var          item         = _factory.GetNormal();
            AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase);

            _alchemy.Execute(item, affixManager);
            var result = _scouring.Execute(item, affixManager);

            Assert.IsTrue(result);

            Assert.AreEqual(0, item.Suffixes.Count);
            Assert.AreEqual(0, item.Prefixes.Count);
            Assert.AreEqual(EquipmentRarity.Normal, item.Rarity);
        }
示例#4
0
        public void ExaltedSuccessTest()
        {
            var          item         = _factory.GetNormal();
            AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase);

            _transmutation.Execute(item, affixManager);
            _regal.Execute(item, affixManager);

            var previousAffixCount = item.Prefixes.Count + item.Suffixes.Count;
            var result             = _exalted.Execute(item, affixManager);

            Assert.IsTrue(result);
            var currentAffixCount = item.Prefixes.Count + item.Suffixes.Count;

            Assert.AreEqual(previousAffixCount + 1, currentAffixCount);
        }
        public void TransmutationSuccessTest()
        {
            var          item         = _factory.GetNormal();
            AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase);

            var result = _transmutation.Execute(item, affixManager);

            Assert.IsTrue(result);
            Assert.IsTrue(item.Suffixes.Count + item.Prefixes.Count >= 1);
            Assert.AreEqual(EquipmentRarity.Magic, item.Rarity);
        }
示例#6
0
        public void ChanceSuccessTest()
        {
            var          item         = _factory.GetNormal();
            AffixManager affixManager = _currencyTestHelper.CreateAffixManager(item.ItemBase);
            var          result       = _chance.Execute(item, affixManager);

            Assert.IsTrue(result);

            Assert.IsTrue(item.Suffixes.Count >= 1);
            Assert.IsTrue(item.Prefixes.Count >= 1);
            Assert.AreNotEqual(EquipmentRarity.Normal, item.Rarity);
        }
示例#7
0
        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);
        }