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"); }
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"); }