Ejemplo n.º 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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }