public void single_constant_true()
        {
            _l = d => true;
            var sql = _sut.GetSql(_l);

            sql.Should().Be("1=1");
        }
Пример #2
0
        public void value_objects_are_flattened_on_setup_param()
        {
            Expression <Func <MapperPost, object> > l = x => x.DateDiff(TSqlDatePart.Day, x.CreatedOn, DateTime.Now);
            var rez = _sut.GetSql(l);

            rez.Should().Be("datediff(Day,CreatedOn,@0)");
        }