예제 #1
0
        public void ToStringTest()
        {
            StringWriter writer = new StringWriter();

            writer.WriteLine("[Test]");
            writer.WriteLine(" cat = muffy");
            writer.WriteLine(" dog = rover");
            writer.WriteLine(" bird = tweety");
            IniConfigSource source =
                new IniConfigSource(new StringReader(writer.ToString()));

            string eol = Environment.NewLine;

            string compare = "[Test]" + eol
                             + "cat = muffy" + eol
                             + "dog = rover" + eol
                             + "bird = tweety" + eol;

            Assert.AreEqual(compare, source.ToString());
        }