Boo.BooLangStudioSpecs.WhenParsingCodeStringsWithPoundSignLineComments.WhenParsingCodeStringsWithPoundSignLineComments C# (CSharp) Method

WhenParsingCodeStringsWithPoundSignLineComments() public method

public WhenParsingCodeStringsWithPoundSignLineComments ( ) : System
return System
        public WhenParsingCodeStringsWithPoundSignLineComments()
            : base()
        {
            //               0         1         2         3         4
            //               012345678901234567890123456789012345678901
            rawCodeString = "someMethodCall('a string') # line Comment";
            BuildTokens(rawCodeString);
            List<TokenInfo> commentTokens = new List<TokenInfo>(from i in tokens
                                                                where i.Type == TokenType.Comment
                                                                select i);
            Assert.True(commentTokens.Count == 1);
            lineCommentToken = commentTokens[0];
        }