示例#1
0
        public bool IsCovered(IRuleTest ruleTest)
        {
            if (ruleTest is KeyNoValueTest)
            {
                var rule = (KeyNoValueTest)ruleTest;
                keys.RemoveAll(k => rule.keys.Any(key => Wildcard.Compare(k, key)));

                if (!keys.Any())
                {
                    keys.Add("*");
                }

                if (keys[0] == "*")
                {
                    return(true);
                }
            }
            return(false);
        }