예제 #1
0
        public void GetEnumeratorTypedShouldRewrite()
        {
            var actual = new RewriteQueryable <Dummy>(query, provider).GetEnumerator();

            Assert.NotNull(actual);
            Assert.True(rewriter.VisitCalled);
        }
예제 #2
0
        public void QueryShouldReturnQuery()
        {
            var actual = new RewriteQueryable <Dummy>(query, provider).Query;

            Assert.Equal(query, actual);
        }
예제 #3
0
        public void ProviderShouldReturnProvider()
        {
            var actual = new RewriteQueryable <Dummy>(query, provider).Provider;

            Assert.Equal(provider, actual);
        }
예제 #4
0
        public void ExpressionShouldReturnExpression()
        {
            var actual = new RewriteQueryable <Dummy>(query, provider).Expression;

            Assert.Equal(query.Expression, actual);
        }
예제 #5
0
        public void ElementTypeShouldReturnElementType()
        {
            var actual = new RewriteQueryable <Dummy>(query, provider).ElementType;

            Assert.Equal(typeof(Dummy), actual);
        }