protected override string DescribeNotRule(NotRule <T> rule)
        {
            var result      = DescribeResult(rule.IsTrueFor(evaluateWith));
            var description = Describe(rule.Rule);

            if (NeedsParenthesis(rule, rule.Rule))
            {
                description = string.Format("({0})", description);
            }

            return(string.Format("NOT[{1}] {0}", description, result));
        }
Esempio n. 2
0
        protected override string DescribeNotRule(NotRule <T> rule)
        {
            var result = DescribeResult(rule.IsTrueFor(evaluateWith));

            return(string.Format("NOT ({0})[{1}]", Describe(rule.Rule), result));
        }