예제 #1
0
        public void FirstCommentIsExtractedCorrectly()
        {
            var file =
                @"// foo
// bar

";

            var extracted = TestParser.GetFirstComment(new StringReader(file));

            Assert.Equal(new string[] { "// foo", "// bar" }, extracted);
        }
예제 #2
0
        public void OnlyCommentIsExtracted()
        {
            var file =
                @"// foo
// bar

using System;
";

            var extracted = TestParser.GetFirstComment(new StringReader(file));

            Assert.Equal(new string[] { "// foo", "// bar" }, extracted);
        }