Beispiel #1
0
        public void TalentTests()
        {
            Talent talent = HeroMedic.GetTalent("MedicCellularReactor");

            Assert.AreEqual("Cooldown: 45 seconds", talent.Tooltip.Cooldown?.CooldownTooltip?.RawDescription);
            Assert.AreEqual("Consueme energy to heal", talent.Tooltip.FullTooltip.RawDescription);
            Assert.IsTrue(string.IsNullOrEmpty(talent.Tooltip?.Energy?.EnergyTooltip?.RawDescription));
        }
Beispiel #2
0
        public void AbilityTests()
        {
            Ability ability = HeroMedic.GetAbility(new AbilityTalentId("MedicHealingBeam", "MedicHealingBeam")
            {
                AbilityType = AbilityTypes.Q,
            });

            Assert.AreEqual("<s val=\"StandardTooltipDetails\">Energy: 6 per second</s>", ability.Tooltip.Energy?.EnergyTooltip.RawDescription);
        }