I have a separate project which performs watiN tests. The project is in the form of class library project. When I run test it launches the browser and then uses the Web.config of the Web Application Project which I am testing. The Web.config of web application project has the Dev connection string which should not be used for testing.
What are different ways that I can take and tell my WatiN to use the App.config that is inside the WatiN project and not the Web application project?
Here are couple of options that I have:
1) Replace the connection string at runtime. 2) Replace the connection string at pre-build event or something.