public void TalentChargesTest() { Talent talent = HeroTestHero.GetTalent("TestHeroBattleRage"); Assert.AreEqual(3, talent.Tooltip.Charges.CountMax); Assert.AreEqual(1, talent.Tooltip.Charges.CountUse); Assert.IsNull(talent.Tooltip.Charges.CountStart); Assert.AreEqual("Charge Cooldown: 40 seconds", talent.Tooltip.Cooldown.CooldownTooltip?.RawDescription); }
public void AbilityTalentLinkIdsForTalentActivableAbilitiesTest() { Talent talentNoLinks = HeroTestHero.GetTalent("TestHeroArmorUpBodyCheck"); Assert.IsTrue(talentNoLinks.AbilityTalentLinkIds.Count == 0); Talent talentHasLinks = HeroTestHero.GetTalent("TestHeroBodyCheckBruteForce"); Assert.IsTrue(talentHasLinks.AbilityTalentLinkIds.Count == 1); Assert.AreEqual("TestHeroArmorUpBodyCheck", talentHasLinks.AbilityTalentLinkIds.ToList()[0]); }
public void IsActiveIsQuestForTalentsTests() { Talent talent = HeroTestHero.GetTalent("TestHeroBattleRage"); Assert.IsTrue(talent.IsActive); talent = HeroTestHero.GetTalent("TestHeroHighlord"); Assert.IsFalse(talent.IsQuest); talent = HeroTestHero.GetTalent("TestHeroMasteredStab"); Assert.IsTrue(talent.IsQuest); talent = HeroTestHero.GetTalent("TestHeroMekaFall"); Assert.IsFalse(talent.IsQuest); }
public void AbilityTalentTooltipShowUsageOffTest() { Talent talent = HeroTestHero.GetTalent("TestHeroTheWill"); Assert.IsNull(talent.Tooltip.Cooldown?.CooldownTooltip?.RawDescription); }
public void TalentActiveCooldownOverrideTextTest() { Talent talent = HeroTestHero.GetTalent("TestHeroTimeOut"); Assert.AreEqual("Cooldown: 60 seconds", talent.Tooltip.Cooldown.CooldownTooltip.RawDescription); }
public void TalentCooldownTest() { Talent talent = HeroTestHero.GetTalent("TestHeroBattleRage"); Assert.AreEqual("Charge Cooldown: 40 seconds", talent.Tooltip.Cooldown.CooldownTooltip?.RawDescription); }