public void ConfigDocumentContainsSection() { ConfigDocument document = new ConfigDocument(file); Assert.IsTrue(document.ContainsSection("section1")); Assert.IsTrue(document.ContainsSection("section2")); }
public void ConfigDocumentAddSection() { ConfigDocument document = new ConfigDocument(file); Assert.IsFalse(document.ContainsSection("section3")); document.AddSection("section3"); Assert.IsTrue(document.ContainsSection("section3")); }