public void GenericGetSectionReturnsNullForNotFoundSection()
        {
            var target = new ExternalConfiguration("DocaLabs.Utils.Tests.External.config");

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

            Assert.IsNull(result);
        }
        public void GenericGetSectionReturnsNullForExistingSectionOfWrongType()
        {
            var target = new ExternalConfiguration("DocaLabs.Utils.Tests.External.config");

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

            Assert.IsNull(result);
        }
        public void GenericGetSectionReturnsFoundSection()
        {
            var target = new ExternalConfiguration("DocaLabs.Utils.Tests.External.config");

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

            Assert.IsNotNull(result);
            Assert.AreEqual("externalTestValue1", result.TestValue);
        }