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

";

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

            Assert.Equal(new string[] { "// foo", "// bar" }, extracted);
        }
Beispiel #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);
        }