public void WhenBothArePositiveDoesntCare()
        {
            var param = Expression.Parameter(typeof(IQueryable<int>), "x");

            var expr = new SkipAndTakeVisitor<int>().Visit(param, 30, 50);

            Assert.AreEqual("x.Skip(1500).Take(50)", expr.ToString());
        }
        public void WhenTakeIsZeroDoesntCreateAMethodCall()
        {
            var param = Expression.Parameter(typeof(IQueryable<int>), "x");

            var expr = new SkipAndTakeVisitor<int>().Visit(param, 30, 0);

            Assert.AreEqual("x", expr.ToString());
        }
        public void WhenBothAreNegativeDontCreateAnyMethodCall()
        {
            var param = Expression.Parameter(typeof(IQueryable<int>), "x");

            var expr = new SkipAndTakeVisitor<int>().Visit(param, -10, -10);

            Assert.AreEqual("x", expr.ToString());
        }