Exemple #1
0
        public void PrettyPrintHideTuples()
        {
            var q = new QueriableDummy <ntup>();

            var r = q.Select(rq => Tuple.Create(rq.run * 2, 1)).Select(rq => rq.Item1).PrettyPrintQuery();

            Console.WriteLine(r);
            Assert.IsFalse(r.Contains("Tuple"));
            Assert.IsTrue(r.Contains("[rq].run * 2"));
        }
Exemple #2
0
        public void PrettyPrintSimpleQuery()
        {
            var q = new QueriableDummy <ntup>();

            var r = q.Select(rq => rq.run * 2).PrettyPrintQuery();

            Console.WriteLine(r);
            Assert.IsTrue(r.Contains("select"));
            Assert.IsTrue(r.Contains("[rq].run * 2"));
        }