I am trying to use MSTest on our code base. Now I am running into different problems during this.
We implicitly use _getDefaultName from Microsoft.Practices.EnterpriseLibrary.Data and it gets the default connection string in the current Assembly's App.config. Since this test project would be a new assembly/project it is not able to find the connection string in the source project.
I can avoid this by hard coding the connection string or giving the path of the App.config explicitly in source code.
But I do not want to change the source code for the sake of test code, so is there a way to specify or change the current running assembly?
Would my life be simple if I use any other testing framework?