public void test_THAT_neq_operation_with_double_IS_converted_to_expression_correctly(double value, string result) { var op1 = new FieldRefOperand("Status"); var op2 = new NumberValueOperand(value); var op = new NeqOperation(null, op1, op2); var expr = op.ToExpression(); Assert.That(expr.ToString(), Is.EqualTo(result)); }
public void test_THAT_neq_operation_with_bool_IS_converted_to_expression_correctly() { var op1 = new FieldRefOperand("Status"); var op2 = new BooleanValueOperand(true); var op = new NeqOperation(null, op1, op2); var expr = op.ToExpression(); Assert.That(expr.ToString(), Is.EqualTo("(Convert(x.get_Item(\"Status\")) != True)")); }