Currently we have three tests in ConnectionFactoryConfigTests that run against a real Visual Studio instance but only when Visual Studio is actually running on the machine. So, for example, these tests do not run in the command line build. The tests are useful mostly for people working on the code since they can be run to debug issues from within Visual Studio. This situation is not ideal, but also isn't too bad, especially given the code is tested with many other unit tests anyway.
Currently the tests use a hard-coded string for the Visual Studio version expected. Ideally the tests would detect which version of Visual Studio is running, but that doesn't appear to be trvial. (Or, at least, if it is trivial then I haven't seen how to do it.)
Currently the tests use a hard-coded string for the Visual Studio version expected. Ideally the tests would detect which version of Visual Studio is running, but that doesn't appear to be trvial. (Or, at least, if it is trivial then I haven't seen how to do it.)