Пример #1
0
        public void FossilSuccessTest()
        {
            var equipment = _currencyTestHelper.GetTestItem();
            var spent     = _currencyTestHelper.TestCurrency("Aberrant Fossil", equipment);

            Assert.AreEqual(1, spent["Aberrant Fossil"]);
            Assert.AreEqual(1, spent["Primitive Alchemical Resonator"]);
            Assert.AreEqual(EquipmentRarity.Rare, equipment.Rarity);
            Assert.IsTrue(equipment.Stats.Count >= 4);

            var currency = _currencyTestHelper.CurrencyFactory.GetCurrencyByName("Aberrant Fossil") as PoeCraftLib.Currency.Currency.Currency;

            Assert.IsFalse(currency.CurrencyModifiers.RollsLucky);
            Assert.AreEqual(0, currency.CurrencyModifiers.ExplicitWeightModifiers["lightning"]);
            Assert.AreEqual(10, currency.CurrencyModifiers.ExplicitWeightModifiers["chaos"]);
            Assert.AreEqual(5, currency.CurrencyModifiers.ExplicitWeightModifiers["poison"]);
            Assert.IsFalse(spent.ContainsKey(CurrencyNames.ScouringOrb));
            Assert.IsTrue(currency.CurrencyModifiers.AddedExplicits.Count > 0);
            Assert.AreEqual(100, currency.CurrencyModifiers.ItemLevelRestriction);
        }
        public void AlchemyOrbRarityNormalSuccessTest()
        {
            var equipment = _currencyTestHelper.GetTestItem();
            var spent     = _currencyTestHelper.TestCurrency(CurrencyNames.AlchemyOrb, equipment);

            Assert.AreEqual(1, spent[CurrencyNames.AlchemyOrb]);
            Assert.AreEqual(EquipmentRarity.Rare, equipment.Rarity);
            Assert.IsTrue(equipment.Stats.Count >= 4);
        }