public void FirstRequestForSectionInAppConfigCreatesWatcherForAppConfig() { SystemConfigurationSourceImplementation implementation = new SystemConfigurationSourceImplementation(true); object section = implementation.GetSection(localSection); Assert.IsNotNull(section); Assert.AreEqual(1, implementation.WatchedConfigSources.Count); Assert.IsTrue(implementation.WatchedConfigSources.Contains(localSectionSource)); Assert.AreEqual(1, implementation.WatchedSections.Count); Assert.IsTrue(implementation.WatchedSections.Contains(localSection)); Assert.IsNotNull(implementation.ConfigSourceWatcherMappings[localSectionSource].Watcher); Assert.AreEqual(implementation.ConfigSourceWatcherMappings[localSectionSource].Watcher.GetType(), typeof(ConfigurationChangeFileWatcher)); implementation.Dispose(); }