public void test_THAT_lookup_value_IS_rendered_to_caml_properly()
        {
            var    operand = new LookupValueValueOperand("123");
            string caml    = operand.ToCaml().ToString();

            Assert.That(caml, Is.EqualTo("<Value Type=\"Lookup\">123</Value>"));
        }
Example #2
0
        public void test_THAT_eq_operation_with_lookup_value_operand_IS_converted_to_expression_correctly()
        {
            var        op1  = new FieldRefOperand("Title");
            var        op2  = new LookupValueValueOperand("foo");
            var        op   = new EqOperation(null, op1, op2);
            Expression expr = op.ToExpression();

            Assert.That(expr.ToString(), Is.EqualTo("(x.get_Item(\"Title\") == Convert(Convert(\"foo\")))"));
        }