We ran into the very same issue when we started running our own Unit Tests on our V4 product (which runs only under VS2008).
Here’s the code we’re using – you’ll find an Initialize() method in all our V4 Unit Tests.
[TestInitialize]
public void Initialize() {
// With the VS2008 Test framework the AppDomain and base directory will be pointing
// to the common/ide directory and config file probing will fail if you're using the AppHelper.
// Here’s a workaround:
IdeaBladeConfig.ConfigFileAssembly = System.Reflection.Assembly.Load("AppHelper");
}
Note that the initialization isn’t strictly required in [TestInitialize], that’s just what we use.