public void NonGenericGetSectionReturnsFoundSection()
        {
            var target = new DefaultWebConfigurationManager();

            var result = target.GetSection("defaultSection1");

            Assert.IsNotNull(result);
            Assert.IsInstanceOf<TestConfigurationSection>(result);
            Assert.AreEqual("defaultTestValue1", ((TestConfigurationSection)result).TestValue);
        }
        public void NonGenericGetSectionReturnsNullForNotFoundSection()
        {
            var target = new DefaultWebConfigurationManager();

            var result = target.GetSection("very unknown name");

            Assert.IsNull(result);
        }
        public void GenericGetSectionReturnsNullForExistingSectionOfWrongType()
        {
            var target = new DefaultWebConfigurationManager();

            var result = target.GetSection<TestConfigurationSection>("anotherTestConfigurationSection");

            Assert.IsNull(result);
        }