public void GetEnumeratorTypedShouldRewrite() { var actual = new RewriteQueryable <Dummy>(query, provider).GetEnumerator(); Assert.NotNull(actual); Assert.True(rewriter.VisitCalled); }
public void QueryShouldReturnQuery() { var actual = new RewriteQueryable <Dummy>(query, provider).Query; Assert.Equal(query, actual); }
public void ProviderShouldReturnProvider() { var actual = new RewriteQueryable <Dummy>(query, provider).Provider; Assert.Equal(provider, actual); }
public void ExpressionShouldReturnExpression() { var actual = new RewriteQueryable <Dummy>(query, provider).Expression; Assert.Equal(query.Expression, actual); }
public void ElementTypeShouldReturnElementType() { var actual = new RewriteQueryable <Dummy>(query, provider).ElementType; Assert.Equal(typeof(Dummy), actual); }