示例#1
0
        public void MultilineComment()
        {
            CommentWriter writer = new CommentWriter();

            writer.Write(new CommentTemplate("first line\r\nsecond line\r\nthird line"), this.output);
            Assert.AreEqual("// first line\r\n// second line\r\n// third line", this.output.ToString());
        }
示例#2
0
        public void CommentWriter()
        {
            CommentWriter writer = new CommentWriter();

            writer.Write(new CommentTemplate("first line"), this.output);
            Assert.AreEqual("// first line", this.output.ToString());
        }