示例#1
0
        public void ConfigDocumentContainsSection()
        {
            ConfigDocument document = new ConfigDocument(file);

            Assert.IsTrue(document.ContainsSection("section1"));
            Assert.IsTrue(document.ContainsSection("section2"));
        }
示例#2
0
        public void ConfigDocumentAddSection()
        {
            ConfigDocument document = new ConfigDocument(file);

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