149 references to TestInMethodAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (149)
Classification\SemanticClassifierTests.cs (16)
64await TestInMethodAsync( 1476await TestInMethodAsync( 1527await TestInMethodAsync(@"global::System.String.Clone("");", 1537await TestInMethodAsync( 1578await TestInMethodAsync( 2434await TestInMethodAsync( 2455await TestInMethodAsync( 2470await TestInMethodAsync( 2485await TestInMethodAsync( 2726await TestInMethodAsync( 2863await TestInMethodAsync(""" 3056=> await TestInMethodAsync(""" 3064await TestInMethodAsync(@"var goo = $""goo{{1:0000}}bar"";", 3202await TestInMethodAsync(""" 3219await TestInMethodAsync(""" 3665await TestInMethodAsync(
Classification\SemanticClassifierTests_StringEscapes.cs (35)
18await TestInMethodAsync(@"var goo = ""goo\r\nbar"";", 28await TestInMethodAsync(@"var goo = ""goo\r\nbar""u8;", 38await TestInMethodAsync(@"var goo = @""goo\r\nbar"";", 46await TestInMethodAsync(@"var goo = @""goo\r\nbar""u8;", 54await TestInMethodAsync(@"var goo = $""goo{{1}}bar"";", 64await TestInMethodAsync(@"var goo = $""goo{{1}}bar""u8;", 74await TestInMethodAsync(@"var goo = $@""goo{{1}}bar"";", 84await TestInMethodAsync(@"var goo = $@""goo{{1}}bar""u8;", 94await TestInMethodAsync(@"var goo = $""goo\r{{1}}\nbar"";", 106await TestInMethodAsync(@"var goo = $""goo\r{{1}}\nbar""u8;", 118await TestInMethodAsync(@"var goo = $@""goo\r{{1}}\nbar"";", 128await TestInMethodAsync(@"var goo = $@""goo\r{{1}}\nbar""u8;", 138await TestInMethodAsync(@"var goo = $""goo\r{1}\nbar"";", 148await TestInMethodAsync(@"var goo = $""goo\r{1}\nbar""u8;", 158await TestInMethodAsync(@"var goo = $@""{{goo{1}bar}}"";", 168await TestInMethodAsync(@"var goo = $@""{{goo{1}bar}}""u8;", 178await TestInMethodAsync(@"var goo = $@""{{{12:X}}}"";", 188await TestInMethodAsync(@"var goo = $@""{{{12:X}}}""u8;", 198await TestInMethodAsync(@"var goo = """"""goo\r\nbar"""""";", 206await TestInMethodAsync(@"var goo = """"""goo\r\nbar""""""u8;", 214await TestInMethodAsync("""" 226await TestInMethodAsync("""" 238await TestInMethodAsync("""" 250await TestInMethodAsync("""" 262await TestInMethodAsync(@"var goo = """"""\"""""";", 270await TestInMethodAsync(@"var goo = """"""\""""""u8;", 278await TestInMethodAsync("""" 290await TestInMethodAsync("""" 302await TestInMethodAsync("""" 314await TestInMethodAsync("""" 327await TestInMethodAsync(@"var goo = '\n';", 337await TestInMethodAsync(@"var goo = '\\';", 347await TestInMethodAsync(@"var goo = '\'';", 357await TestInMethodAsync(@"var goo = '""';", 366await TestInMethodAsync(@"var goo = '\u000a';",
Classification\SyntacticClassifierTests.cs (41)
80await TestInMethodAsync("var goo = 42", 91await TestInMethodAsync("var", 107await TestInMethodAsync( 234await TestInMethodAsync("yield return 42", 244await TestInMethodAsync( 354await TestInMethodAsync( 419await TestInMethodAsync(""" 431await TestInMethodAsync(@"@""goo""u8", 442await TestInMethodAsync(@"@""goo""U8", 514await TestInMethodAsync(code, 536await TestInMethodAsync(code, 559await TestInMethodAsync(code, 717await TestInMethodAsync(code, 755await TestInMethodAsync(code, 1596await TestInMethodAsync( 2410await TestInMethodAsync("goo:", 2458await TestInMethodAsync( 2470await TestInMethodAsync( 2493await TestInMethodAsync( 4372await TestInMethodAsync(code, 4407await TestInMethodAsync(code, 4452await TestInMethodAsync(code, 4500await TestInMethodAsync(code, 4527await TestInMethodAsync(code, 4553await TestInMethodAsync(code, 4791await TestInMethodAsync(""" 5213await TestInMethodAsync(""" 5239await TestInMethodAsync(""" 5270await TestInMethodAsync(""" 5294await TestInMethodAsync(""" 5341await TestInMethodAsync(""" 5371await TestInMethodAsync(""" 5413await TestInMethodAsync(""" 5538await TestInMethodAsync(""" 5570await TestInMethodAsync(""" 5591await TestInMethodAsync(""" 6880await TestInMethodAsync(@"interface I { void F(scoped R r); }", 6899await TestInMethodAsync(@"scoped var v;", 6910await TestInMethodAsync(@"F(x, out scoped R y);", 7029await TestInMethodAsync("var lam = (params int[] xs) => xs.Length;", 7051await TestInMethodAsync("var lam = (int a, int b = 1, params int[] xs, params int[] ys.Length) => { };",
Classification\SyntacticClassifierTests_Preprocessor.cs (26)
25await TestInMethodAsync(code, 42await TestInMethodAsync(code, 60await TestInMethodAsync(code, 77await TestInMethodAsync(code, 94await TestInMethodAsync(code, 112await TestInMethodAsync(code, 130await TestInMethodAsync(code, 148await TestInMethodAsync(code, 167await TestInMethodAsync(code, 186await TestInMethodAsync(code, 206await TestInMethodAsync(code, 226await TestInMethodAsync(code, 246await TestInMethodAsync(code, 268await TestInMethodAsync(code, 290await TestInMethodAsync(code, 312await TestInMethodAsync(code, 1288await TestInMethodAsync( 1298await TestInMethodAsync( 1308await TestInMethodAsync( 1319await TestInMethodAsync( 1330await TestInMethodAsync( 1342await TestInMethodAsync( 1352await TestInMethodAsync( 1361await TestInMethodAsync( 1371await TestInMethodAsync( 1381await TestInMethodAsync(code: @"int _; _ = 1;",
Classification\TotalClassifierTests.cs (6)
307await TestInMethodAsync(@"foreach (var v in args) { }", 481await TestInMethodAsync( 1075await TestInMethodAsync( 1098await TestInMethodAsync(""" 1587await TestInMethodAsync(""" 2248await TestInMethodAsync(@"var goo = $@""{{{12:X}}}"";",
Classification\TotalClassifierTests_Dynamic.cs (25)
34await TestInMethodAsync( 50await TestInMethodAsync(@"dynamic.Equals(1, 1);", 66await TestInMethodAsync(@"dynamic? a", 205await TestInMethodAsync( 367await TestInMethodAsync(@"var v = from dynamic in names", 381await TestInMethodAsync( 407await TestInMethodAsync( 429await TestInMethodAsync( 682await TestInMethodAsync(@"typeof(dynamic)", 722await TestInMethodAsync(@"foreach (dynamic dynamic in dynamic", 735await TestInMethodAsync(@"using(dynamic d", 746await TestInMethodAsync( 813await TestInMethodAsync( 826await TestInMethodAsync( 847await TestInMethodAsync( 945await TestInMethodAsync(@"dynamic d", 954await TestInMethodAsync(@"dynamic[] d", 965await TestInMethodAsync( 990await TestInMethodAsync( 1007await TestInMethodAsync( 1023await TestInMethodAsync(@"if (a is dynamic)", 1036await TestInMethodAsync(@"a = a as dynamic", 1048await TestInMethodAsync( 1070await TestInMethodAsync( 1135await TestInMethodAsync(