public void ShouldCreateDateExpression() { var factory = new DbExpressionFactory(); DbDateTimeFunctionExpression dateTimeFunctionExpression; dateTimeFunctionExpression = factory.Date(factory.Column("SomeDateTimeColumn")); ValidateDateTimeFunctionExpression(dateTimeFunctionExpression, DbDateTimeFunctionExpressionType.Date); }