public void PrepareSelectExpression() { var expression = Expression.Constant(0); var result = _stage.PrepareSelectExpression(expression, _context); Assert.That(result, Is.SameAs(expression)); }
public void PrepareSelectExpression() { var singleDataInfo = new StreamedSingleValueInfo(typeof(int), false); var selectProjection = Expression.Constant(0); var subStatement = new SqlStatement(singleDataInfo, selectProjection, new SqlTable[0], null, null, new Ordering[0], null, false, null, null); var expressionWithSubStatement = new SqlSubStatementExpression(subStatement); var result = _stage.PrepareSelectExpression(expressionWithSubStatement, _context); Assert.That(result, Is.SameAs(expressionWithSubStatement)); }