80 references to TestTokenizer
Microsoft.AspNetCore.Razor.Language.UnitTests (80)
Legacy\CSharpTokenizerCommentTest.cs (19)
18TestTokenizer( 28TestTokenizer( 40TestTokenizer( 52TestTokenizer("// Foo Bar Baz", SyntaxFactory.Token(SyntaxKind.CSharpComment, "// Foo Bar Baz")); 58TestTokenizer(""" 67TestTokenizer(""" 76TestTokenizer(""" 90TestTokenizer(""" 104TestTokenizer(""" 118TestTokenizer(""" 132TestTokenizer(""" 146TestTokenizer("/// This is a single line documentation comment", SyntaxFactory.Token(SyntaxKind.CSharpComment, "/// This is a single line documentation comment")); 152TestTokenizer(""" 164TestTokenizer(""" 180TestTokenizer(""" 198TestTokenizer(""" 216TestTokenizer(""" 232TestTokenizer(""" 248TestTokenizer("""
Legacy\CSharpTokenizerIdentifierTest.cs (13)
19TestTokenizer("foo", SyntaxFactory.Token(SyntaxKind.Identifier, "foo")); 25TestTokenizer("_foo", SyntaxFactory.Token(SyntaxKind.Identifier, "_foo")); 31TestTokenizer("foo4", SyntaxFactory.Token(SyntaxKind.Identifier, "foo4")); 37TestTokenizer("ῼfoo", SyntaxFactory.Token(SyntaxKind.Identifier, "ῼfoo")); 43TestTokenizer("ᵊfoo", SyntaxFactory.Token(SyntaxKind.Identifier, "ᵊfoo")); 49TestTokenizer("ƻfoo", SyntaxFactory.Token(SyntaxKind.Identifier, "ƻfoo")); 55TestTokenizer("Ⅽool", SyntaxFactory.Token(SyntaxKind.Identifier, "Ⅽool")); 61TestTokenizer("foo\u0300", SyntaxFactory.Token(SyntaxKind.Identifier, "foo\u0300")); 67TestTokenizer("fooः", SyntaxFactory.Token(SyntaxKind.Identifier, "fooः")); 73TestTokenizer("foo١", SyntaxFactory.Token(SyntaxKind.Identifier, "foo١")); 79TestTokenizer("foo‿bar", SyntaxFactory.Token(SyntaxKind.Identifier, "foo‿bar")); 85TestTokenizer("foo؃bar", SyntaxFactory.Token(SyntaxKind.Identifier, "foo؃bar")); 173TestTokenizer(keyword, SyntaxFactory.Token(SyntaxKind.Keyword, CSharpSyntaxFacts.GetText(keywordType)));
Legacy\CSharpTokenizerLiteralTest.cs (25)
46TestTokenizer("42a", SyntaxFactory.Token(SyntaxKind.NumericLiteral, "42"), IgnoreRemaining); 80TestTokenizer("0xDEADBEEFz", SyntaxFactory.Token(SyntaxKind.NumericLiteral, "0xDEADBEEF"), IgnoreRemaining); 114TestTokenizer("0b01010101z", SyntaxFactory.Token(SyntaxKind.NumericLiteral, "0b01010101"), IgnoreRemaining); 120TestTokenizer("3.a", SyntaxFactory.Token(SyntaxKind.NumericLiteral, "3"), IgnoreRemaining); 126TestTokenizer("3.14159", SyntaxFactory.Token(SyntaxKind.NumericLiteral, "3.14159")); 132TestTokenizer(".14159", SyntaxFactory.Token(SyntaxKind.NumericLiteral, ".14159")); 212TestTokenizer("'goo\n", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'goo"), IgnoreRemaining); 218TestTokenizer("'goo\\\n", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'goo\\\n"), IgnoreRemaining); 224TestTokenizer("'goo\\\nflarg", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'goo\\\nflarg"), IgnoreRemaining); 230TestTokenizer("'goo\\\r\n", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'goo\\\r"), IgnoreRemaining); 236TestTokenizer($"'goo\\\r\nflarg", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'goo\\\r"), IgnoreRemaining); 242TestTokenizer("'goo\\\\'blah", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'goo\\\\'"), IgnoreRemaining); 248TestTokenizer("'f' // This is a comment", 257TestTokenizer("'goo' // This is a comment", 290TestTokenizer("\"goo\n", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"goo"), IgnoreRemaining); 296TestTokenizer("\"goo\\\n", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"goo\\\n"), IgnoreRemaining); 302TestTokenizer("\"goo\\\nflarg", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"goo\\\nflarg"), IgnoreRemaining); 308TestTokenizer("\"goo\\\r\n", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"goo\\\r"), IgnoreRemaining); 314TestTokenizer($"\"goo\\\r\nflarg", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"goo\\\r"), IgnoreRemaining); 320TestTokenizer("\"goo\\\\\"blah", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"goo\\\\\""), IgnoreRemaining); 338TestTokenizer("@\"goo\\\"bar\"", SyntaxFactory.Token(SyntaxKind.StringLiteral, "@\"goo\\\""), IgnoreRemaining); 350TestTokenizer("\"goo\" // This is a comment", 359TestTokenizer("@\"goo\" // This is a comment", 392TestTokenizer("\"hello\"u8;", 476TestTokenizer("""
Legacy\CSharpTokenizerOperatorsTest.cs (1)
286TestTokenizer(">>",
Legacy\CSharpTokenizerTest.cs (9)
18TestTokenizer(""); 24TestTokenizer( 34TestTokenizer( 45TestTokenizer( 56TestTokenizer( 67TestTokenizer( 77TestTokenizer( 87TestTokenizer( 103TestTokenizer(
Legacy\CSharpTokenizerTestBase.cs (1)
30TestTokenizer(text, SyntaxFactory.Token(expectedTokenKind, text));
Legacy\DirectiveCSharpTokenizerTest.cs (2)
16TestTokenizer( 29TestTokenizer(
Legacy\DirectiveHtmlTokenizerTest.cs (2)
16TestTokenizer( 26TestTokenizer(
Legacy\HtmlTokenizerTest.cs (7)
16TestTokenizer(""); 22TestTokenizer("foo-9309&smlkmb;::-3029022,.sdkq92384", 29TestTokenizer(" \t\f ", 36TestTokenizer("\n\r\r\n", 135TestTokenizer( 145TestTokenizer( 157TestTokenizer(
Legacy\HtmlTokenizerTestBase.cs (1)
30TestTokenizer(text, SyntaxFactory.Token(expectedTokenKind, text));