title: Is calling AsQueryable<T> on a DbSet<T> "safe"?
body: <p>Say I want to unit test Entity Framework's query logic, one way would be to convert the <code>DbSet&lt;T&gt;</code> to <code>IQueryable&lt;T&gt;</code> before building the expression trees for easy mocking. Is this "safe" and is there anything to be aware about?</p>