195 references to TestInMethodAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (149)
Classification\SemanticClassifierTests.cs (51)
58
await
TestInMethodAsync
(
1343
await
TestInMethodAsync
(
1390
await
TestInMethodAsync
(@"global::System.String.Clone("");",
1400
await
TestInMethodAsync
(
1437
await
TestInMethodAsync
(
2237
await
TestInMethodAsync
(
2256
await
TestInMethodAsync
(
2269
await
TestInMethodAsync
(
2282
await
TestInMethodAsync
(
2534
await
TestInMethodAsync
(
2662
await
TestInMethodAsync
(@"
4330
await
TestInMethodAsync
(@"var goo = ""goo\r\nbar"";",
4340
await
TestInMethodAsync
(@"var goo = ""goo\r\nbar""u8;",
4350
await
TestInMethodAsync
(@"var goo = @""goo\r\nbar"";",
4358
await
TestInMethodAsync
(@"var goo = @""goo\r\nbar""u8;",
4366
await
TestInMethodAsync
(@"var goo = $""goo{{1}}bar"";",
4376
await
TestInMethodAsync
(@"var goo = $""goo{{1}}bar""u8;",
4386
await
TestInMethodAsync
(@"var goo = $@""goo{{1}}bar"";",
4396
await
TestInMethodAsync
(@"var goo = $@""goo{{1}}bar""u8;",
4406
await
TestInMethodAsync
(@"var goo = $""goo\r{{1}}\nbar"";",
4418
await
TestInMethodAsync
(@"var goo = $""goo\r{{1}}\nbar""u8;",
4430
await
TestInMethodAsync
(@"var goo = $@""goo\r{{1}}\nbar"";",
4440
await
TestInMethodAsync
(@"var goo = $@""goo\r{{1}}\nbar""u8;",
4450
await
TestInMethodAsync
(@"var goo = $""goo\r{1}\nbar"";",
4460
await
TestInMethodAsync
(@"var goo = $""goo\r{1}\nbar""u8;",
4470
await
TestInMethodAsync
(@"var goo = $@""{{goo{1}bar}}"";",
4480
await
TestInMethodAsync
(@"var goo = $@""{{goo{1}bar}}""u8;",
4490
await
TestInMethodAsync
(@"var goo = $@""{{{12:X}}}"";",
4500
await
TestInMethodAsync
(@"var goo = $@""{{{12:X}}}""u8;",
4510
await
TestInMethodAsync
(@"var goo = """"""goo\r\nbar"""""";",
4518
await
TestInMethodAsync
(@"var goo = """"""goo\r\nbar""""""u8;",
4526
await
TestInMethodAsync
(@"var goo = """"""
4536
await
TestInMethodAsync
(@"var goo = """"""
4546
await
TestInMethodAsync
(@"var goo = $""""""
4556
await
TestInMethodAsync
(@"var goo = $""""""
4566
await
TestInMethodAsync
(@"var goo = """"""\"""""";",
4574
await
TestInMethodAsync
(@"var goo = """"""\""""""u8;",
4582
await
TestInMethodAsync
(@"var goo = """"""
4592
await
TestInMethodAsync
(@"var goo = """"""
4602
await
TestInMethodAsync
(@"var goo = $""""""
4612
await
TestInMethodAsync
(@"var goo = $""""""
4623
await
TestInMethodAsync
(@"var goo = '\n';",
4633
await
TestInMethodAsync
(@"var goo = '\\';",
4643
await
TestInMethodAsync
(@"var goo = '\'';",
4653
await
TestInMethodAsync
(@"var goo = '""';",
4662
await
TestInMethodAsync
(@"var goo = '\u000a';",
4671
=> await
TestInMethodAsync
(@"#line 1 ""a\b""", testHost);
4677
await
TestInMethodAsync
(@"var goo = $""goo{{1:0000}}bar"";",
4811
await
TestInMethodAsync
(@"
4827
await
TestInMethodAsync
(@"
5248
await
TestInMethodAsync
(
Classification\SyntacticClassifierTests.cs (41)
74
await
TestInMethodAsync
("var goo = 42",
85
await
TestInMethodAsync
("var",
101
await
TestInMethodAsync
(
193
await
TestInMethodAsync
("yield return 42",
203
await
TestInMethodAsync
(
267
await
TestInMethodAsync
(
330
await
TestInMethodAsync
(@"@""goo""",
338
await
TestInMethodAsync
(@"@""goo""u8",
347
await
TestInMethodAsync
(@"@""goo""U8",
403
await
TestInMethodAsync
(code,
421
await
TestInMethodAsync
(code,
440
await
TestInMethodAsync
(code,
566
await
TestInMethodAsync
(code,
604
await
TestInMethodAsync
(code,
1413
await
TestInMethodAsync
(
2171
await
TestInMethodAsync
("goo:",
2217
await
TestInMethodAsync
(
2229
await
TestInMethodAsync
(
2252
await
TestInMethodAsync
(
4087
await
TestInMethodAsync
(code,
4114
await
TestInMethodAsync
(code,
4149
await
TestInMethodAsync
(code,
4187
await
TestInMethodAsync
(code,
4212
await
TestInMethodAsync
(code,
4236
await
TestInMethodAsync
(code,
4458
await
TestInMethodAsync
(@"
4858
await
TestInMethodAsync
(@"
4882
await
TestInMethodAsync
(@"
4911
await
TestInMethodAsync
(@"
4933
await
TestInMethodAsync
(@"
4978
await
TestInMethodAsync
(@"
5006
await
TestInMethodAsync
(@"
5044
await
TestInMethodAsync
(@"
5161
await
TestInMethodAsync
(@"
5191
await
TestInMethodAsync
(@"
5210
await
TestInMethodAsync
(@"
6409
await
TestInMethodAsync
(@"interface I { void F(scoped R r); }",
6428
await
TestInMethodAsync
(@"scoped var v;",
6439
await
TestInMethodAsync
(@"F(x, out scoped R y);",
6556
await
TestInMethodAsync
("var lam = (params int[] xs) => xs.Length;",
6578
await
TestInMethodAsync
("var lam = (int a, int b = 1, params int[] xs, params int[] ys.Length) => { };",
Classification\SyntacticClassifierTests_Preprocessor.cs (26)
24
await
TestInMethodAsync
(code,
39
await
TestInMethodAsync
(code,
55
await
TestInMethodAsync
(code,
70
await
TestInMethodAsync
(code,
85
await
TestInMethodAsync
(code,
101
await
TestInMethodAsync
(code,
117
await
TestInMethodAsync
(code,
133
await
TestInMethodAsync
(code,
150
await
TestInMethodAsync
(code,
167
await
TestInMethodAsync
(code,
185
await
TestInMethodAsync
(code,
203
await
TestInMethodAsync
(code,
221
await
TestInMethodAsync
(code,
241
await
TestInMethodAsync
(code,
261
await
TestInMethodAsync
(code,
281
await
TestInMethodAsync
(code,
1201
await
TestInMethodAsync
(
1211
await
TestInMethodAsync
(
1221
await
TestInMethodAsync
(
1232
await
TestInMethodAsync
(
1243
await
TestInMethodAsync
(
1255
await
TestInMethodAsync
(
1265
await
TestInMethodAsync
(
1274
await
TestInMethodAsync
(
1284
await
TestInMethodAsync
(
1294
await
TestInMethodAsync
(code: @"int _; _ = 1;",
Classification\TotalClassifierTests.cs (6)
289
await
TestInMethodAsync
(@"foreach (var v in args) { }",
455
await
TestInMethodAsync
(
1007
await
TestInMethodAsync
(
1028
await
TestInMethodAsync
(@"
1505
await
TestInMethodAsync
(@"
2149
await
TestInMethodAsync
(@"var goo = $@""{{{12:X}}}"";",
Classification\TotalClassifierTests_Dynamic.cs (25)
35
await
TestInMethodAsync
(
51
await
TestInMethodAsync
(@"dynamic.Equals(1, 1);",
67
await
TestInMethodAsync
(@"dynamic? a",
204
await
TestInMethodAsync
(
360
await
TestInMethodAsync
(@"var v = from dynamic in names",
374
await
TestInMethodAsync
(
398
await
TestInMethodAsync
(
420
await
TestInMethodAsync
(
651
await
TestInMethodAsync
(@"typeof(dynamic)",
689
await
TestInMethodAsync
(@"foreach (dynamic dynamic in dynamic",
702
await
TestInMethodAsync
(@"using(dynamic d",
713
await
TestInMethodAsync
(
774
await
TestInMethodAsync
(
787
await
TestInMethodAsync
(
806
await
TestInMethodAsync
(
898
await
TestInMethodAsync
(@"dynamic d",
907
await
TestInMethodAsync
(@"dynamic[] d",
918
await
TestInMethodAsync
(
943
await
TestInMethodAsync
(
960
await
TestInMethodAsync
(
976
await
TestInMethodAsync
(@"if (a is dynamic)",
989
await
TestInMethodAsync
(@"a = a as dynamic",
1001
await
TestInMethodAsync
(
1023
await
TestInMethodAsync
(
1082
await
TestInMethodAsync
(
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (46)
Classification\SemanticClassifierTests.vb (17)
258
Await
TestInMethodAsync
(code,
277
Await
TestInMethodAsync
(code,
289
Await
TestInMethodAsync
(code,
302
Await
TestInMethodAsync
(code,
311
Await
TestInMethodAsync
("GetType(System.Exception()",
315
Await
TestInMethodAsync
("GetType(System.Exception(,)",
323
Await
TestInMethodAsync
("Dim a = New System.IDisposable()",
552
Await
TestInMethodAsync
(code,
974
Await
TestInMethodAsync
(code,
985
Await
TestInMethodAsync
(code,
1081
Await
TestInMethodAsync
("dim goo = ""goo""""bar""",
1088
Await
TestInMethodAsync
("dim goo = $""goo{{1}}bar""",
1096
Await
TestInMethodAsync
("dim goo = $""goo""""{{1}}""""bar""",
1106
Await
TestInMethodAsync
("dim goo = $""goo""""{1}""""bar""",
1114
Await
TestInMethodAsync
("dim goo = $""{{goo{1}bar}}""",
1131
Await
TestInMethodAsync
("dim goo = $""goo{{1:0000}}bar""",
1208
Await
TestInMethodAsync
(code,
Classification\SyntacticClassifierTests.vb (29)
677
Await
TestInMethodAsync
(code,
716
Await
TestInMethodAsync
(code,
865
Await
TestInMethodAsync
(code,
959
Await
TestInMethodAsync
(code,
1085
Await
TestInMethodAsync
(code,
1112
Await
TestInMethodAsync
(code,
1138
Await
TestInMethodAsync
(code,
1166
Await
TestInMethodAsync
(code,
1203
Await
TestInMethodAsync
(code,
1248
Await
TestInMethodAsync
(code,
1309
Await
TestInMethodAsync
(code,
1548
Await
TestInMethodAsync
("Dim from = 42",
1584
Await
TestInMethodAsync
(code,
1693
Await
TestInMethodAsync
(code,
1802
Await
TestInMethodAsync
(code,
1843
Await
TestInMethodAsync
(code,
1962
Await
TestInMethodAsync
(code,
2087
Await
TestInMethodAsync
(code,
2453
Await
TestInMethodAsync
(code,
2473
Await
TestInMethodAsync
(code,
2523
Await
TestInMethodAsync
(code,
3796
Await
TestInMethodAsync
(code,
4759
Await
TestInMethodAsync
(" : Console.WriteLine()",
4772
Await
TestInMethodAsync
("Dim y = New Goo() From",
4787
Await
TestInMethodAsync
("Dim y As New Goo() From",
5239
Await
TestInMethodAsync
(code,
5253
Await
TestInMethodAsync
(code,
5491
Await
TestInMethodAsync
(code,
5505
Await
TestInMethodAsync
(code,