示例#1
0
        public void SanitizerTestResolveSimpleSkill()
        {
            string expression = $"{LConstants.HARM_F}({LConstants.TargetKeyword},{LConstants.SourceKeyword}, T, {LConstants.GET_PROP_F}({LConstants.SourceKeyword}, STR))";
            double expected   = MockEnemy.GetProperty(Entity.HP_KEY).Value - MockPlayer.GetProperty("STR").Value;

            SanitizerInstance.SanitizeSkill(expression, MockPlayer, MockEnemy);
            Assert.AreEqual(expected, MockEnemy.GetProperty(Entity.HP_KEY).Value);
        }