public void ComparisonConstructorTest1() { Expression left = null; // TODO: Initialize to an appropriate value PredicateOperators op = new PredicateOperators(); // TODO: Initialize to an appropriate value Expression right = null; // TODO: Initialize to an appropriate value Comparison target = new Comparison(left, op, right); Assert.Inconclusive("TODO: Implement code to verify target"); }
private string GetOperatorStringFromComparison(Comparison expression) { switch (expression.Operator) { case PredicateOperators.Equals: return " = "; case PredicateOperators.GreaterThan: return " > "; case PredicateOperators.GreaterThanOrEquals: return " >= "; case PredicateOperators.LessThan: return " < "; case PredicateOperators.LessThanOrEquals: return " <= "; case PredicateOperators.NotEquals: return " != "; case PredicateOperators.NotGreaterThan: return " !> "; case PredicateOperators.NotLessThan: return " !< "; case PredicateOperators.And: return " AND "; case PredicateOperators.Or: return " OR "; case PredicateOperators.In: return " IN "; case PredicateOperators.Like: return " LIKE "; } return string.Empty; }