title: Unit Test method with EF.Functions.Contains()
body: <p>I have got a method which contains a call to <code>EF.Functions.Contains</code>. Now I want to write unit tests for this method with a InMemory database, but I am getting instantly the following exception <code>System.InvalidOperationException : The 'Contains' method is not supported because the query has switched to client-evaluation.</code></p>
  
  <p>My method looks like this</p>
  
  <pre><code>var attributeValues = Context.AssetAttributeValues
                                           .Include(a =&gt; a.AssetAttribute)
                                           .Include(a =&gt; a.Asset)
                                           .Where(i =&gt; EF.Functions.Contains(i.Value, searchString));
  </code></pre>
  
  <p>I know that this exception is thrown because I have got no fulltext index on my InMemory database compared to my productive SQL Server instance but how do I get the same index on the InMemory database?</p>
  
  <p>Is there any way to get arround this exception?</p>