Ejemplo n.º 1
0
        public TomeStream GetStream(string testFileName)
        {
            string path = Path.Combine(Config.TomePath, testFileName);

            string[]   tome           = File.ReadAllLines(path);
            string[]   tomeNoComments = CommentRemover.RemoveComments(tome);
            TomeStream stream         = new TomeStream(tomeNoComments);

            return(stream);
        }
Ejemplo n.º 2
0
        public void RemoveComments_Removes_End_Of_Line_Comments(string input, string expected)
        {
            // arrange
            var commentRemover = new CommentRemover();

            // act
            string cleanedLine = commentRemover.RemoveComments(input);

            // assert
            Assert.AreEqual(expected, cleanedLine);
        }
Ejemplo n.º 3
0
 public static TNode RemoveComments <TNode>(TNode node, CommentRemoveOptions removeOptions, TextSpan span) where TNode : SyntaxNode
 {
     return(CommentRemover.RemoveComments(node, removeOptions, span));
 }