public void Loading_empty_should_return_an_empty_document()
        {
            /* Arrange */
            IConfigProvider p = new MemoryConfigProvider();

            /* Act */
            var docs = p.LoadConfig();
            var doc = docs.FirstOrDefault();

            /* Assert */
            docs.Should().HaveCount(1);
            doc.Root.Elements().Should().BeEmpty();
        }
        public void Loading_xml_should_work()
        {
            /* Arrange */
            var expected = TestConfigFactory.CreateConfig("Section1", "Section2", "Section3");

            IConfigProvider p = new MemoryConfigProvider(expected.Declaration.ToString() + expected.ToString(SaveOptions.DisableFormatting));

            /* Act */
            var docs = p.LoadConfig();
            var doc = docs.FirstOrDefault();

            /* Assert */
            docs.Should().HaveCount(1);
            doc.Root.Element("Section1").Should().NotBeNull();
            doc.Root.Element("Section2").Should().NotBeNull();
            doc.Root.Element("Section3").Should().NotBeNull();
        }