Can't read from appSettings
问题 I have a test project with a web.config file in the test project. I keep getting null when I try to read a value from the appSettings section of the web.config. I have a reference to System.configuration and a using statement using System.Configuration; <appSettings> <add key="SatisfactionSurveyLink" value="Link"/> </appSettings> [TestMethod()] public void TestReadFromAppSettings() { String surveyLink = ConfigurationManager.AppSettings["SatisfactionSurveyLink"]; Assert.IsNotNull(surveyLink);