public void NoLimitNorOffset()
        {
            // Arrange:
            var query = new Query(TableName);
            var ctx   = new SqlResult {
                Query = query, RawSql = SqlPlaceholder
            };

            // Act & Assert:
            Assert.Null(compiler.CompileLimit(ctx));
        }
Exemplo n.º 2
0
        public void NoLimitNorOffset()
        {
            // Arrange:
            var query = new Query(TableName);
            var ctx   = new SqlResult {
                Query = query, RawSql = SqlPlaceholder
            };

            // Act & Assert:
            var result = compiler.CompileLimit(ctx);

            compiler.ApplyLegacyLimit(ctx, 0, 0);

            Assert.Null(result);
            Assert.Equal(SqlPlaceholder, ctx.RawSql);
        }