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