Boo.BooLangStudioSpecs.WhenParsingCodeStringsWithDoubleWhackLineComments.ShouldParseAttemptedDoubleLineCommentAsOneLineComment C# (CSharp) Method

ShouldParseAttemptedDoubleLineCommentAsOneLineComment() private method

        public void ShouldParseAttemptedDoubleLineCommentAsOneLineComment()
        {
            //               0         1         2         3         4         5         6
            //               01234567890123456789012345678901234567890123456789012345678901234
            rawCodeString = "someMethodCall('a string') // line Comment // double 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, "Expected 1, actual: "+commentTokens.Count.ToString());
            //Assert.Fail("comment 1's start: "+commentTokens[0].StartIndex.ToString()+" comment 2's start: "+commentTokens[1].StartIndex.ToString());
            lineCommentToken = commentTokens[0];
        }