Beispiel #1
0
        public void Ranged_IsCaseInsensitive()
        {
            // Fixture setup
            var sut = new AbilityService(null);
            // Excercise system
            var result = sut.GetAbilitiesWithName("ranged").FirstOrDefault();

            // Verify outcome
            Assert.NotNull(result);
            // Teardown
        }
Beispiel #2
0
        public void Ranged_ShouldReturnRangedAttack()
        {
            // Fixture setup
            var sut = new AbilityService(null);
            // Excercise system
            var result = sut.GetAbilitiesWithName("Ranged").FirstOrDefault();

            // Verify outcome
            Assert.NotNull(result);
            Assert.Equal(AbilityType.Range, result.AbilityType);
            Assert.Equal(TargetType.Enemy, result.TargetType);
            Assert.Equal("Ranged", result.English);
            Assert.Equal("/range <t>", result.Command);
            // Teardown
        }