//todo: support for IN expression //[TestCase(typeof(PropertyIsIn), "SomeColumn IN (1, 2, 3, 4, 5)", "SomeColumn", "(1, 2, 3, 4, 5)")] public void TestComparisonExpressions(Type comparisonType, string conditionString, string column, string literal) { var builder = new SqlConditionBuilder(log); ISqlConditionExpression condition = builder.Build(conditionString); Assert.IsNotNull(condition); TestComparisonType(comparisonType, condition, column, literal); }
public void R_Test(Type gate, string conditionString) { var builder = new SqlConditionBuilder(log); ISqlConditionExpression condition = builder.Build(conditionString); Assert.IsNotNull(condition); Assert.IsInstanceOf <RightSideExpression>(condition); Assert.IsInstanceOf(gate, condition); }
public void Reversed_Parse_Test() { var binaryTreeBuilder = new SqlConditionBuilder(log); ISqlConditionExpression conditionBinaryTree = binaryTreeBuilder.Build(ExpZeros); var sqlStringBuilder = new SqlServerConditionStringBuilder(); IUncheckedSqlCondition uncheckedSqlCondition = sqlStringBuilder.Build(conditionBinaryTree); Assert.AreEqual(Expected, uncheckedSqlCondition.SqlConditionString); }