public void RequestForNullSectionThrows()
        {
            ManageableConfigurationSourceImplementation implementation
                = new ManageableConfigurationSourceImplementation("test.config",
                                                                  new MockManageabilityHelper(),
                                                                  new GroupPolicyWatcher(),
                                                                  new ConfigurationChangeWatcherCoordinator("test.config", false),
                                                                  new ConfigurationChangeNotificationCoordinator());
            ManageableConfigurationSource configurationSource
                = new ManageableConfigurationSource(implementation);

            configurationSource.GetSection(null);
        }
        public void CanReadSectionFromConfigurationSource()
        {
            ManageableConfigurationSourceImplementation implementation
                = new ManageableConfigurationSourceImplementation("test.config",
                                                                  new MockManageabilityHelper(),
                                                                  new GroupPolicyWatcher(),
                                                                  new ConfigurationChangeWatcherCoordinator("test.config", false),
                                                                  new ConfigurationChangeNotificationCoordinator());
            ManageableConfigurationSource configurationSource
                = new ManageableConfigurationSource(implementation);
            TestsConfigurationSection section = (TestsConfigurationSection)configurationSource.GetSection("local.section.1");

            Assert.IsNotNull(section);
            Assert.AreEqual("value1", section.Value);
        }
        public void CanReadSectionFromConfigurationSource()
        {
            ManageableConfigurationSourceImplementation implementation
                = new ManageableConfigurationSourceImplementation("test.config",
                                                                  new MockManageabilityHelper(),
                                                                  new GroupPolicyWatcher(),
                                                                  new ConfigurationChangeWatcherCoordinator("test.config", false),
                                                                  new ConfigurationChangeNotificationCoordinator());

            ManageableConfigurationSource configurationSource
                = new ManageableConfigurationSource(implementation);

            TestsConfigurationSection section = (TestsConfigurationSection)configurationSource.GetSection("local.section.1");
            Assert.IsNotNull(section);
            Assert.AreEqual("value1", section.Value);
        }
        public void RequestForNullSectionThrows()
        {
            ManageableConfigurationSourceImplementation implementation
                = new ManageableConfigurationSourceImplementation("test.config",
                                                                  new MockManageabilityHelper(),
                                                                  new GroupPolicyWatcher(),
                                                                  new ConfigurationChangeWatcherCoordinator("test.config", false),
                                                                  new ConfigurationChangeNotificationCoordinator());

            ManageableConfigurationSource configurationSource
                = new ManageableConfigurationSource(implementation);

            configurationSource.GetSection(null);
        }