protected override string DescribeXorRule(XorRule <T> rule) { var result = DescribeResult(rule.IsTrueFor(evaluateWith)); var leftDescription = Describe(rule.Left); if (NeedsParenthesis(rule, rule.Left)) { leftDescription = string.Format("({0})", leftDescription); } var rightDescription = Describe(rule.Right); if (NeedsParenthesis(rule, rule.Right)) { rightDescription = string.Format("({0})", rightDescription); } return(string.Format("{0} XOR[{2}] {1}", leftDescription, rightDescription, result)); }
protected override string DescribeXorRule(XorRule <T> rule) { var result = DescribeResult(rule.IsTrueFor(evaluateWith)); return(string.Format("({0} XOR {1})[{2}]", Describe(rule.Left), Describe(rule.Right), result)); }