NSoft.NFramework.Nini.Ini.IniWriterTests.SectionWithComment C# (CSharp) Method

SectionWithComment() private method

private SectionWithComment ( ) : void
return void
        public void SectionWithComment() {
            StringWriter writer = new StringWriter();
            IniWriter iniWriter = new IniWriter(writer);

            Assert.AreEqual(IniWriteState.Start, iniWriter.WriteState);

            iniWriter.WriteSection("Test Section", "My comment");
            Assert.AreEqual("[Test Section] ; My comment", ReadLine(writer, 1));
            Assert.AreEqual(IniWriteState.Section, iniWriter.WriteState);
        }