324 references to AssertFormatAsync
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (324)
Formatting\FormattingTests.cs (243)
26
=> await
AssertFormatAsync
("namespace A { }", "namespace A{}");
41
await
AssertFormatAsync
(expected, content);
60
await
AssertFormatAsync
(expected, content);
82
await
AssertFormatAsync
(expected, content);
109
await
AssertFormatAsync
(expected, content);
136
await
AssertFormatAsync
(expected, content);
156
await
AssertFormatAsync
(expected, content);
192
await
AssertFormatAsync
(expected, content);
218
await
AssertFormatAsync
(expected, content);
241
await
AssertFormatAsync
(expected, content);
247
await
AssertFormatAsync
("""
283
await
AssertFormatAsync
("""
321
await
AssertFormatAsync
("""
359
await
AssertFormatAsync
("""
387
await
AssertFormatAsync
("""
458
await
AssertFormatAsync
("""
758
await
AssertFormatAsync
("""
786
await
AssertFormatAsync
("""
810
await
AssertFormatAsync
("""
838
await
AssertFormatAsync
("""
864
await
AssertFormatAsync
("""
904
await
AssertFormatAsync
("""
926
await
AssertFormatAsync
("""
952
await
AssertFormatAsync
("""
972
await
AssertFormatAsync
("""
1610
await
AssertFormatAsync
("""
1913
await
AssertFormatAsync
("""
2180
await
AssertFormatAsync
("""
2347
await
AssertFormatAsync
("""
2488
await
AssertFormatAsync
("""
2507
=> await
AssertFormatAsync
(@"enum E { a = 10, b, c }", @"enum E { a = 10, b, c }");
2512
await
AssertFormatAsync
("""
2542
await
AssertFormatAsync
("""
2572
await
AssertFormatAsync
("""
2606
await
AssertFormatAsync
("""
2636
await
AssertFormatAsync
("""
2666
await
AssertFormatAsync
("""
2690
await
AssertFormatAsync
("""
2716
await
AssertFormatAsync
("""
2746
await
AssertFormatAsync
("""
2778
await
AssertFormatAsync
("""
2802
await
AssertFormatAsync
("""
2824
await
AssertFormatAsync
("""
2850
await
AssertFormatAsync
("""
2870
await
AssertFormatAsync
("""
2884
await
AssertFormatAsync
("""
2906
await
AssertFormatAsync
("""
2937
await
AssertFormatAsync
(code, code);
2952
await
AssertFormatAsync
(code, code);
2967
await
AssertFormatAsync
(code, code);
2982
await
AssertFormatAsync
(code, code);
2988
await
AssertFormatAsync
("""
3014
await
AssertFormatAsync
("""
3036
await
AssertFormatAsync
("""
3062
await
AssertFormatAsync
("""
3103
await
AssertFormatAsync
("""
3139
await
AssertFormatAsync
("""
3172
await
AssertFormatAsync
("""
3192
await
AssertFormatAsync
("""
3216
await
AssertFormatAsync
("""
3240
await
AssertFormatAsync
("""
3268
await
AssertFormatAsync
("""
3302
await
AssertFormatAsync
("""
3332
await
AssertFormatAsync
("""
3354
await
AssertFormatAsync
("""
3378
await
AssertFormatAsync
("""
3404
await
AssertFormatAsync
("""
3430
await
AssertFormatAsync
("""
3454
await
AssertFormatAsync
("""
3480
await
AssertFormatAsync
("""
3508
await
AssertFormatAsync
("""
3534
await
AssertFormatAsync
("""
3552
await
AssertFormatAsync
("""
3582
await
AssertFormatAsync
("""
3620
await
AssertFormatAsync
("""
3642
await
AssertFormatAsync
("""
3664
await
AssertFormatAsync
("""
3678
await
AssertFormatAsync
("""
3706
await
AssertFormatAsync
("""
3729
await
AssertFormatAsync
("""
3753
await
AssertFormatAsync
("""
3783
await
AssertFormatAsync
("""
3809
await
AssertFormatAsync
("""
3844
await
AssertFormatAsync
(properlyFormattedCode, properlyFormattedCode);
3850
await
AssertFormatAsync
("""
3876
await
AssertFormatAsync
("""
3904
await
AssertFormatAsync
("""
3932
await
AssertFormatAsync
("""
3960
await
AssertFormatAsync
("""
3978
await
AssertFormatAsync
("""
3998
await
AssertFormatAsync
("""
4020
await
AssertFormatAsync
("""
4042
await
AssertFormatAsync
("""
4056
await
AssertFormatAsync
("""
4072
await
AssertFormatAsync
("""
4100
await
AssertFormatAsync
("""
4126
await
AssertFormatAsync
("""
4154
await
AssertFormatAsync
("""
4163
await
AssertFormatAsync
("""
4177
await
AssertFormatAsync
("""
4201
await
AssertFormatAsync
("""
4221
await
AssertFormatAsync
("""
4257
await
AssertFormatAsync
("""
4273
await
AssertFormatAsync
("""
4291
await
AssertFormatAsync
("""
4312
await
AssertFormatAsync
("""
4327
=> await
AssertFormatAsync
(@"using System;", @" using System;");
4332
await
AssertFormatAsync
("""
4358
await
AssertFormatAsync
("""
4400
await
AssertFormatAsync
(expected, code);
4420
await
AssertFormatAsync
(expected, code);
4438
await
AssertFormatAsync
(code, code);
4462
await
AssertFormatAsync
(expected, code);
4490
await
AssertFormatAsync
(expected, code);
4514
await
AssertFormatAsync
(expected, code);
4538
await
AssertFormatAsync
(expected, code);
4558
await
AssertFormatAsync
(expected, code);
4584
await
AssertFormatAsync
(expected, code);
4602
await
AssertFormatAsync
(expected, code);
4620
await
AssertFormatAsync
(expected, code);
4650
await
AssertFormatAsync
(expected, code);
4674
await
AssertFormatAsync
(expected, code);
4698
await
AssertFormatAsync
(expected, code);
4720
await
AssertFormatAsync
(expected, code);
4768
await
AssertFormatAsync
(expected, code);
4802
await
AssertFormatAsync
(expected, code);
4834
await
AssertFormatAsync
(expected, code);
4858
await
AssertFormatAsync
(expected, code);
4889
await
AssertFormatAsync
(expected, code);
4920
await
AssertFormatAsync
(expected, code);
4951
await
AssertFormatAsync
(expected, code);
4976
await
AssertFormatAsync
(expected, code);
5009
await
AssertFormatAsync
(expected, code);
5037
await
AssertFormatAsync
(expected, code);
5060
await
AssertFormatAsync
(expected, code);
5097
await
AssertFormatAsync
(expected, code);
5127
await
AssertFormatAsync
(expected, code);
5137
await
AssertFormatAsync
(expected, code);
5157
await
AssertFormatAsync
(expected, code);
5201
await
AssertFormatAsync
(expected, code);
5274
await
AssertFormatAsync
(expected, code);
5316
await
AssertFormatAsync
(expected, code);
5358
await
AssertFormatAsync
(expected, code);
5429
await
AssertFormatAsync
(expectedFormattedText, text);
5463
await
AssertFormatAsync
(expectedCode, code);
5487
await
AssertFormatAsync
(expectedCode, code);
5512
await
AssertFormatAsync
(expectedCode, code);
5537
await
AssertFormatAsync
(expectedCode, code);
5562
await
AssertFormatAsync
(expectedCode, code);
5587
await
AssertFormatAsync
(expectedCode, code);
5606
await
AssertFormatAsync
(expectedCode, code);
5629
await
AssertFormatAsync
(expectedCode, code);
5655
await
AssertFormatAsync
(expectedCode, code);
5681
await
AssertFormatAsync
(expectedCode, code);
5709
await
AssertFormatAsync
(expectedCode, code);
5735
await
AssertFormatAsync
(expectedCode, code);
5754
await
AssertFormatAsync
(expectedCode, code);
5786
await
AssertFormatAsync
(expectedCode, code);
5817
await
AssertFormatAsync
(expectedCode, code);
5848
await
AssertFormatAsync
(expectedCode, code);
5871
await
AssertFormatAsync
(expectedCode, code);
6001
await
AssertFormatAsync
(expectedCode, code);
6036
await
AssertFormatAsync
(expectedCode, code);
6062
await
AssertFormatAsync
(expectedCode, code);
6088
await
AssertFormatAsync
(expectedCode, code);
6118
await
AssertFormatAsync
(expectedCode, code);
6145
await
AssertFormatAsync
(expectedCode, code);
6186
await
AssertFormatAsync
(expectedCode, code);
6227
await
AssertFormatAsync
(expectedCode, code);
6261
await
AssertFormatAsync
(expectedCode, code);
6297
await
AssertFormatAsync
(expectedCode, code);
6330
await
AssertFormatAsync
(expectedCode, code);
6369
await
AssertFormatAsync
(expectedCode, code);
6401
await
AssertFormatAsync
(expectedCode, code);
6432
await
AssertFormatAsync
(expectedCode, code);
6465
await
AssertFormatAsync
(expectedCode, code);
6484
await
AssertFormatAsync
(expectedCode, code);
6508
await
AssertFormatAsync
(expectedCode, code);
6541
await
AssertFormatAsync
(expectedCode, code);
6563
await
AssertFormatAsync
(expected, code);
6585
await
AssertFormatAsync
(expected, code);
6615
await
AssertFormatAsync
(expected, code);
6649
await
AssertFormatAsync
(expected, code);
6685
await
AssertFormatAsync
(expected, code);
6721
await
AssertFormatAsync
(expected, code);
6729
await
AssertFormatAsync
("", code);
6753
await
AssertFormatAsync
(expected, code);
6801
await
AssertFormatAsync
(expected, code);
6868
await
AssertFormatAsync
(expected, code);
6895
await
AssertFormatAsync
(expected, code);
6960
await
AssertFormatAsync
(expected, code);
6975
await
AssertFormatAsync
(expected, code);
7222
await
AssertFormatAsync
(expectedDefault, code);
7293
await
AssertFormatAsync
(expected, code);
7353
await
AssertFormatAsync
(expected, code);
7431
await
AssertFormatAsync
(expected, code);
7470
await
AssertFormatAsync
(expected, code);
7509
await
AssertFormatAsync
(expected, code);
7529
await
AssertFormatAsync
(code, code);
8475
await
AssertFormatAsync
(expected, code, parseOptions: parseOptions);
8539
await
AssertFormatAsync
(expected, code);
8570
await
AssertFormatAsync
(expected, code);
8600
await
AssertFormatAsync
(expected, code);
8632
await
AssertFormatAsync
(expected, code);
8662
await
AssertFormatAsync
(expected, code);
8692
await
AssertFormatAsync
(expected, code);
8724
await
AssertFormatAsync
(expected, code);
8754
await
AssertFormatAsync
(expected, code);
8786
await
AssertFormatAsync
(expected, code);
8816
await
AssertFormatAsync
(expected, code);
8848
await
AssertFormatAsync
(expected, code);
8878
await
AssertFormatAsync
(expected, code);
8906
await
AssertFormatAsync
(expected, code);
8934
await
AssertFormatAsync
(expected, code);
8968
await
AssertFormatAsync
(expected, code);
8998
await
AssertFormatAsync
(expected, code);
9028
await
AssertFormatAsync
(expected, code);
9056
await
AssertFormatAsync
(expected, code);
9084
await
AssertFormatAsync
(expected, code);
9112
await
AssertFormatAsync
(expected, code);
9175
await
AssertFormatAsync
("""
9235
await
AssertFormatAsync
(expected, code);
9269
await
AssertFormatAsync
(expected, code);
9303
await
AssertFormatAsync
(expected, code);
9339
await
AssertFormatAsync
(expected, code);
9389
await
AssertFormatAsync
(code, code);
9464
await
AssertFormatAsync
(expected, code);
9480
await
AssertFormatAsync
(code, code);
9510
await
AssertFormatAsync
(expected, code);
9641
await
AssertFormatAsync
(expected, code);
9699
await
AssertFormatAsync
(code, code);
9724
await
AssertFormatAsync
(expected, code);
9762
await
AssertFormatAsync
(expected, code);
10070
await
AssertFormatAsync
(code, code);
10100
await
AssertFormatAsync
("""
10137
await
AssertFormatAsync
(code, code);
10154
await
AssertFormatAsync
(code, code);
10160
await
AssertFormatAsync
("""
10186
await
AssertFormatAsync
("""
10204
await
AssertFormatAsync
("""
10230
await
AssertFormatAsync
("""
10331
await
AssertFormatAsync
(code, code);
10347
await
AssertFormatAsync
(code, code);
Formatting\FormattingTests_FunctionPointers.cs (6)
31
await
AssertFormatAsync
(expected, content);
49
await
AssertFormatAsync
(expected, content);
67
await
AssertFormatAsync
(expected, content);
85
await
AssertFormatAsync
(expected, content);
103
await
AssertFormatAsync
(expected, content);
121
await
AssertFormatAsync
(expected, content);
Formatting\FormattingTests_Patterns.cs (9)
342
await
AssertFormatAsync
(expected, content);
401
await
AssertFormatAsync
(expected, content);
460
await
AssertFormatAsync
(expected, content);
495
await
AssertFormatAsync
(expected, content);
530
await
AssertFormatAsync
(expected, content);
562
await
AssertFormatAsync
(expected, content);
594
await
AssertFormatAsync
(expected, content);
626
await
AssertFormatAsync
(expected, content);
658
await
AssertFormatAsync
(expected, content);
Formatting\FormattingTriviaTests.cs (66)
46
await
AssertFormatAsync
(expected, content);
64
await
AssertFormatAsync
(expected, content);
76
await
AssertFormatAsync
(expected, content);
94
await
AssertFormatAsync
(expected, content);
110
await
AssertFormatAsync
(expected, content);
130
await
AssertFormatAsync
(expected, content);
153
await
AssertFormatAsync
(expected, content);
178
await
AssertFormatAsync
(expected, content);
207
await
AssertFormatAsync
(expected, content);
232
await
AssertFormatAsync
(expected, content);
257
await
AssertFormatAsync
(expected, content);
284
await
AssertFormatAsync
(expected, content);
321
await
AssertFormatAsync
(expected, content);
358
await
AssertFormatAsync
(expected, content);
379
await
AssertFormatAsync
(expected, content);
404
await
AssertFormatAsync
(expected, content);
425
await
AssertFormatAsync
(expected, content);
450
await
AssertFormatAsync
(expected, content);
477
await
AssertFormatAsync
(expected, content);
506
await
AssertFormatAsync
(expected, content);
537
await
AssertFormatAsync
(expected, content);
568
await
AssertFormatAsync
(expected, content);
592
await
AssertFormatAsync
(expected, content);
617
await
AssertFormatAsync
(expected, content);
638
await
AssertFormatAsync
(expected, content);
662
await
AssertFormatAsync
(expected, content);
687
await
AssertFormatAsync
(expected, content);
710
await
AssertFormatAsync
(expected, content);
735
await
AssertFormatAsync
(expected, content);
758
await
AssertFormatAsync
(expected, content);
779
await
AssertFormatAsync
(expected, content);
802
await
AssertFormatAsync
(expected, content);
825
await
AssertFormatAsync
(expected, content);
850
await
AssertFormatAsync
(expected, content);
875
await
AssertFormatAsync
(expected, content);
904
await
AssertFormatAsync
(expected, content);
935
await
AssertFormatAsync
(expected, content);
962
await
AssertFormatAsync
(expected, content);
991
await
AssertFormatAsync
(expected, content);
1028
await
AssertFormatAsync
(expected, content);
1063
await
AssertFormatAsync
(expected, content);
1096
await
AssertFormatAsync
(expected, content);
1121
await
AssertFormatAsync
(expected, content);
1148
await
AssertFormatAsync
(expected, content);
1179
await
AssertFormatAsync
(expected, content);
1211
await
AssertFormatAsync
(expected, content);
1240
await
AssertFormatAsync
(expected, content);
1269
await
AssertFormatAsync
(expected, content);
1298
await
AssertFormatAsync
(expected, content);
1329
await
AssertFormatAsync
(expected, content);
1374
await
AssertFormatAsync
(expected, content);
1405
await
AssertFormatAsync
(expected, content);
1434
await
AssertFormatAsync
(expected, content);
1460
await
AssertFormatAsync
(expected, content);
1483
await
AssertFormatAsync
(expected, content);
1498
await
AssertFormatAsync
(content, content);
1525
await
AssertFormatAsync
(expected, content);
1547
await
AssertFormatAsync
(code, content);
1559
await
AssertFormatAsync
(code, content);
1587
await
AssertFormatAsync
(code, content);
1611
await
AssertFormatAsync
(code, content);
1647
await
AssertFormatAsync
(code, content);
1656
await
AssertFormatAsync
(expected, content);
1665
await
AssertFormatAsync
(expectedContent, content);
1701
await
AssertFormatAsync
(expectedContent, content);
1735
await
AssertFormatAsync
(expected, content);