I need to test the class library project in VS. This project itself does not have a web.config file, but classes are done on the web server on which it is deployed. I refer to them as follows:
ConfigurationManager.ConnectionStrings["stringname"].ConnectionString;
Can I customize these lines while running unit tests in VS? Should I consider a different design method to avoid this problem?
source
share