Exemple #1
0
        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);
        }
Exemple #2
0
        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]);
        }
Exemple #3
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);
        }
Exemple #4
0
        public void AbilityTalentTooltipShowUsageOffTest()
        {
            Talent talent = HeroTestHero.GetTalent("TestHeroTheWill");

            Assert.IsNull(talent.Tooltip.Cooldown?.CooldownTooltip?.RawDescription);
        }
Exemple #5
0
        public void TalentActiveCooldownOverrideTextTest()
        {
            Talent talent = HeroTestHero.GetTalent("TestHeroTimeOut");

            Assert.AreEqual("Cooldown: 60 seconds", talent.Tooltip.Cooldown.CooldownTooltip.RawDescription);
        }
Exemple #6
0
        public void TalentCooldownTest()
        {
            Talent talent = HeroTestHero.GetTalent("TestHeroBattleRage");

            Assert.AreEqual("Charge Cooldown: 40 seconds", talent.Tooltip.Cooldown.CooldownTooltip?.RawDescription);
        }