Remotion.Linq.SqlBackend.UnitTests.ConversionUtilityTest.MakeBinaryWithOperandConversion_LeftOperand_LiftedToTypeOfRight C# (CSharp) Метод

MakeBinaryWithOperandConversion_LeftOperand_LiftedToTypeOfRight() приватный Метод

private MakeBinaryWithOperandConversion_LeftOperand_LiftedToTypeOfRight ( ) : void
Результат void
    public void MakeBinaryWithOperandConversion_LeftOperand_LiftedToTypeOfRight ()
    {
      var left = Expression.Constant (0, typeof (int));
      var right = Expression.Constant (0, typeof (int?));

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

      var expectedExpression = BinaryExpression.Equal (Expression.Convert (left, typeof (int?)), right);
      SqlExpressionTreeComparer.CheckAreEqualTrees (expectedExpression, result);
    }