No ConfigurationManager object available in unit test. RRS feed

  • Question

  • VS2013

    I have a unit test in which I try to add:

    using System.Configuration;

    And ConfigurationManager.AppSettings or ConfigurationManager.ConnectionStrings

    And those are not available?

    Why and how can I read the App config during testing? Thank you.

    • Edited by chrislynn Wednesday, February 11, 2015 6:17 PM
    Wednesday, February 11, 2015 6:15 PM