Пример #1
0
        public void AbilitiesTests()
        {
            Assert.IsTrue(BraxisHoldoutTerranArchangelLaner.ContainsAbility("TerranArchangelLanerBulletstorm"));

            Ability terranArchangelLanerAbility = BraxisHoldoutTerranArchangelLaner.GetFirstAbility("TerranArchangelLanerBulletstorm");

            Assert.AreEqual("Cooldown: 12 seconds", terranArchangelLanerAbility.Tooltip.Cooldown.CooldownTooltip.PlainText);
            Assert.AreEqual("Bulletstorm", terranArchangelLanerAbility.Name);
            Assert.AreEqual("Unleash a hail of bullets in a line", terranArchangelLanerAbility.Tooltip.ShortTooltip.PlainText);
        }
        public void AbilitiesTests()
        {
            Assert.IsTrue(BraxisHoldoutTerranArchangelLaner.ContainsAbility("TerranArchangelLanerBulletstorm", StringComparison.OrdinalIgnoreCase));

            Ability terranArchangelLanerAbility = BraxisHoldoutTerranArchangelLaner.GetAbility(new AbilityTalentId("TerranArchangelLanerBulletstorm", "TerranArchangelBulletstorm")
            {
                AbilityType = AbilityTypes.Q,
            });

            Assert.AreEqual("Cooldown: 12 seconds", terranArchangelLanerAbility.Tooltip.Cooldown.CooldownTooltip.PlainText);
            Assert.AreEqual("Bulletstorm", terranArchangelLanerAbility.Name);
            Assert.AreEqual("Unleash a hail of bullets in a line", terranArchangelLanerAbility.Tooltip.ShortTooltip.PlainText);
        }