public void ConfigDocumentRemoveSection() { ConfigDocument document = new ConfigDocument(file); Assert.IsTrue(document.ContainsSection("section1")); Assert.IsTrue(document.ContainsSection("section2")); document.RemoveSection("section1"); Assert.IsFalse(document.ContainsSection("section1")); Assert.IsTrue(document.ContainsSection("section2")); document = new ConfigDocument(file); document.RemoveSection("section2"); Assert.IsTrue(document.ContainsSection("section1")); Assert.IsFalse(document.ContainsSection("section2")); }