Ejemplo n.º 1
0
        public void ConfigDocumentContainsSection()
        {
            ConfigDocument document = new ConfigDocument(file);

            Assert.IsTrue(document.ContainsSection("section1"));
            Assert.IsTrue(document.ContainsSection("section2"));
        }
Ejemplo n.º 2
0
        public void ConfigDocumentAddSection()
        {
            ConfigDocument document = new ConfigDocument(file);

            Assert.IsFalse(document.ContainsSection("section3"));
            document.AddSection("section3");
            Assert.IsTrue(document.ContainsSection("section3"));
        }