public void FirstCommentIsExtractedCorrectly() { var file = @"// foo // bar "; var extracted = TestParser.GetFirstComment(new StringReader(file)); Assert.Equal(new string[] { "// foo", "// bar" }, extracted); }
public void OnlyCommentIsExtracted() { var file = @"// foo // bar using System; "; var extracted = TestParser.GetFirstComment(new StringReader(file)); Assert.Equal(new string[] { "// foo", "// bar" }, extracted); }