Exemple #1
0
        public void CompileProjectionAmount(ProjectionType type, string expectedProjection)
        {
            var projection = new Projection {
                Value = "x", ProjectionType = type
            };

            var compiler = new AstCompiler();

            projection.Accept(compiler);

            var code = compiler.ToString();

            output.WriteLine(code);
            Assert.NotNull(code);
            Assert.Equal($".Select(Vars => {expectedProjection})", code.TrimEnd());
        }