title: Unable to read configuration file in a test project
body: <p>When running a unit test, the configuration file is not read properly.
  However, when running from a console appplication context, the config file is read.</p>
  
  <p>In the code below, when accessing <strong><em>var section</em></strong> after the assignment, it's null when running the test TestIoCInit() and not null when calling InitIoC() from console application.</p>
  
  <pre><code>    [TestMethod]
      public void TestIocInit()
      {
          InitIoC();
      }
      internal static void InitIoC()
      {
          IUnityContainer unityContainer = new UnityContainer(); // the host app domain creates the unity container and pass it to the resolver, the resolver is a static member of IoC class, thus the container is static
  
          ServiceLocator.SetLocatorProvider(unityContainer);
  
          var section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
          section.Configure(unityContainer);
  
          var unityResolver = new UnityDependencyResolver(unityContainer);
          IoC.Initialize(unityResolver);
          new IoCTypeRegistrationTask(unityContainer).Execute();
      }
  </code></pre>
  
  <p>Appreciate your help!</p>