public void CanLoadFromFile()
        {
            string xml = XmlConfigurationSource.ToXml( SectionGenerator.GetThreeSections() );

            var source = new XmlConfigurationSource( xml ) {FileName = "CanLoadFromFile.xml"};
            source.Save();

            var sourceFromFile = XmlConfigurationSource.FromFile( "CanLoadFromFile.xml" );
            string sourceString = source.ToString();
            string sourceFromFileString = sourceFromFile.ToString();
            Assert.Equal( sourceString, sourceFromFileString );
        }
        public void CanLoadFromFile()
        {
            string xml = XmlConfigurationSource.ToXml(SectionGenerator.GetThreeSections());

            var source = new XmlConfigurationSource(xml)
            {
                FileName = "CanLoadFromFile.xml"
            };

            source.Save();

            var    sourceFromFile       = XmlConfigurationSource.FromFile("CanLoadFromFile.xml");
            string sourceString         = source.ToString();
            string sourceFromFileString = sourceFromFile.ToString();

            Assert.Equal(sourceString, sourceFromFileString);
        }