示例#1
0
        public void AddPropertyTests()
        {
            var sentence = SectionFactory.CreateSection("foo", Grammar.DefaultDelimiters);
            var section  = new IniSection(sentence, new IniFile());

            section.AddComment("baz");
            section.AddComment("qux");

            Assert.IsTrue(section.Comments.Count() == 2);
            Assert.IsTrue(section.Comments.ElementAt(0) == "baz");
            Assert.IsTrue(section.Comments.ElementAt(1) == "qux");
        }
示例#2
0
        public void AddPropertyTests()
        {
            var sentence = SectionFactory.CreateSection("foo", Grammar.DefaultDelimiters);
            var section = new IniSection(sentence, new IniFile());

            section.AddComment("baz");
            section.AddComment("qux");

            Assert.IsTrue(section.Comments.Count() == 2);
            Assert.IsTrue(section.Comments.ElementAt(0) == "baz");
            Assert.IsTrue(section.Comments.ElementAt(1) == "qux");
        }