Esempio n. 1
0
        public void MakeBinaryWithOperandConversion_Coalesce()
        {
            var left  = Expression.Constant(0, typeof(int?));
            var right = Expression.Constant(0, typeof(int));

            var result = ConversionUtility.MakeBinaryWithOperandConversion(ExpressionType.Coalesce, left, right, false, null);

            var expectedExpression = BinaryExpression.Coalesce(left, right);

            SqlExpressionTreeComparer.CheckAreEqualTrees(expectedExpression, result);
        }