public void AugmentationOrbReducesCatalystQualityTest() { var equipment = _currencyTestHelper.GetTestItemByItemClass("Ring"); equipment.Quality = 20; equipment.QualityType = QualityType.Defense; equipment.Rarity = EquipmentRarity.Magic; _currencyTestHelper.TestCurrency(CurrencyNames.AugmentationOrb, equipment); Assert.AreEqual(18, equipment.Quality); }
public void EssenceSuccessTest() { int levelRestriction = 45; var equipment = _currencyTestHelper.GetTestItemByItemClass("Helmet"); var spent = _currencyTestHelper.TestCurrency(lowLevelEssenceName, equipment); Assert.AreEqual(1, spent[lowLevelEssenceName]); Assert.AreEqual(EquipmentRarity.Rare, equipment.Rarity); Assert.IsTrue(equipment.Stats.Count >= 4); Assert.IsTrue(equipment.Stats.Where(x => x.Affix.FullName != lowLevelEssenceProperty).All(x => x.Affix.RequiredLevel <= levelRestriction)); Assert.IsTrue(equipment.Stats.Any(x => x.Affix.FullName == lowLevelEssenceProperty)); }
public void MasterCraftSuccessTest() { var equipment = _currencyTestHelper.GetTestItemByItemClass("Two Hand Sword"); _currencyTestHelper.TestCurrency(CurrencyNames.TransmuationOrb, equipment); _currencyTestHelper.TestCurrency(CurrencyNames.AnnulmentOrb, equipment); _currencyTestHelper.TestCurrency(CurrencyNames.AnnulmentOrb, equipment); var spent = _currencyTestHelper.TestCurrency("MinionDamageOnWeapon1", equipment); Assert.AreEqual(EquipmentRarity.Magic, equipment.Rarity); Assert.AreEqual(1, equipment.Stats.Count); Assert.AreEqual("EinharMasterMinionDamageOnWeapon2h1_", equipment.Stats.First().Affix.FullName); Assert.AreEqual(4, spent[CurrencyNames.AugmentationOrb]); }
public void BlacksmithWhetstoneWeaponSuccessTest() { var equipment = _currencyTestHelper.GetTestItemByItemClass("Dagger"); var spent = _currencyTestHelper.TestCurrency(CurrencyNames.BlacksmithsWhetstone, equipment); Assert.AreEqual(1, spent[CurrencyNames.BlacksmithsWhetstone]); Assert.AreEqual(5, equipment.Quality); Assert.AreEqual(QualityType.Default, equipment.QualityType); }
public void HunterCurrencySuccessTest() { var equipment = _currencyTestHelper.GetTestItemByItemClass("Body Armour"); _currencyTestHelper.TestCurrency(CurrencyNames.TransmuationOrb, equipment); _currencyTestHelper.TestCurrency(CurrencyNames.RegalOrb, equipment); var spent = _currencyTestHelper.TestCurrency(CurrencyNames.HuntersOrb, equipment); Assert.AreEqual(1, spent[CurrencyNames.HuntersOrb]); Assert.AreEqual(EquipmentRarity.Rare, equipment.Rarity); Assert.IsTrue(equipment.Stats.Count >= 3 && equipment.Stats.Count <= 4); Assert.AreEqual(1, equipment.Stats.Count(x => x.Affix.SpawnWeights.ContainsKey("body_armour_basilisk"))); }