2/8/2011 5:07:48 PM
 sbrauen Posts: 4
|
Does T# work with the Enity Framework? I'm trying to test a method that is invoking an entity context and I keep getting an error. I've tested the application in question and it works fine so I know there's not a problem there. Here's a copy of the error I keep getting: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
As a test I added in the config file from my data project, but that didn't change anything. Thanks!
|
|
|
0
• permalink
|
2/8/2011 5:25:57 PM
 Ludovic Dubois Administrator Posts: 159
|
Within Visual Studio 2010, tests are run through tsharp-remote.exe. So, used configuration is tsharp-remote.exe.config and not yours! You have to load your config file at runtime (see testcontext documentation to do it once only).
We will add code to do that automatically... soon
|
|
|
0
• permalink
|
2/8/2011 5:28:32 PM
 sbrauen Posts: 4
|
Will this work within VS2008 as well?
|
|
|
0
• permalink
|
2/8/2011 6:41:08 PM
 Ludovic Dubois Administrator Posts: 159
|
Sure!
|
|
|
0
• permalink
|