How to read Web.Config file while Unit Test Case Debugging?
问题 I am trying to fetch data(URL) from my configuration file i.e : <AppSettings> <add key="configurationUrl" value="http://xx.xx.xx.xx:XXXX/configuration service/configurations"/> using the following code reqClient.BaseAddress = System.Configuration.ConfigurationManager.AppSettings["configurationUrl"].ToString(); Its all working good when I am trying to debug it, but the major problem comes when I debug a unit test case calling the same code above, instead of Showing "configurationUrl" in the