497 references to AssertFormatAsync
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (497)
Formatting\FormattingTests.cs (412)
26
=> await
AssertFormatAsync
("namespace A { }", "namespace A{}");
30
=>
AssertFormatAsync
("""
41
=>
AssertFormatAsync
("""
54
=>
AssertFormatAsync
("""
70
=>
AssertFormatAsync
("""
91
=>
AssertFormatAsync
("""
112
=>
AssertFormatAsync
("""
126
=>
AssertFormatAsync
("""
156
=>
AssertFormatAsync
("""
176
=>
AssertFormatAsync
("""
193
=>
AssertFormatAsync
("""
227
=>
AssertFormatAsync
("""
263
=>
AssertFormatAsync
("""
299
=>
AssertFormatAsync
("""
325
=>
AssertFormatAsync
("""
394
=>
AssertFormatAsync
("""
692
=>
AssertFormatAsync
("""
718
=>
AssertFormatAsync
("""
740
=>
AssertFormatAsync
("""
766
=>
AssertFormatAsync
("""
790
=>
AssertFormatAsync
("""
828
=>
AssertFormatAsync
("""
848
=>
AssertFormatAsync
("""
872
=>
AssertFormatAsync
("""
890
=>
AssertFormatAsync
("""
977
await
AssertFormatAsync
("""
1022
await
AssertFormatAsync
("""
1062
await
AssertFormatAsync
("""
1099
await
AssertFormatAsync
("""
1190
await
AssertFormatAsync
(
1233
await
AssertFormatAsync
(
1276
await
AssertFormatAsync
(
1319
await
AssertFormatAsync
(
1362
await
AssertFormatAsync
(
1405
await
AssertFormatAsync
(
1448
await
AssertFormatAsync
(
1491
await
AssertFormatAsync
(
1526
=>
AssertFormatAsync
("""
1573
await
AssertFormatAsync
("""
1648
await
AssertFormatAsync
("""
1720
await
AssertFormatAsync
("""
1805
await
AssertFormatAsync
("""
1827
=>
AssertFormatAsync
("""
1966
await
AssertFormatAsync
("""
2092
=>
AssertFormatAsync
("""
2158
await
AssertFormatAsync
("""
2227
await
AssertFormatAsync
("""
2257
=>
AssertFormatAsync
("""
2333
await
AssertFormatAsync
("""
2396
=>
AssertFormatAsync
("""
2414
=> await
AssertFormatAsync
(@"enum E { a = 10, b, c }", @"enum E { a = 10, b, c }");
2418
=>
AssertFormatAsync
("""
2446
=>
AssertFormatAsync
("""
2474
=>
AssertFormatAsync
("""
2506
=>
AssertFormatAsync
("""
2534
=>
AssertFormatAsync
("""
2562
=>
AssertFormatAsync
("""
2584
=>
AssertFormatAsync
("""
2608
=>
AssertFormatAsync
("""
2636
=>
AssertFormatAsync
("""
2666
=>
AssertFormatAsync
("""
2688
=>
AssertFormatAsync
("""
2708
=>
AssertFormatAsync
("""
2732
=>
AssertFormatAsync
("""
2750
=>
AssertFormatAsync
("""
2762
=>
AssertFormatAsync
("""
2782
=>
AssertFormatAsync
("""
2812
await
AssertFormatAsync
(code, code);
2827
await
AssertFormatAsync
(code, code);
2842
await
AssertFormatAsync
(code, code);
2857
await
AssertFormatAsync
(code, code);
2862
=>
AssertFormatAsync
("""
2886
=>
AssertFormatAsync
("""
2906
=>
AssertFormatAsync
("""
2930
=>
AssertFormatAsync
("""
2969
=>
AssertFormatAsync
("""
3003
=>
AssertFormatAsync
("""
3034
=>
AssertFormatAsync
("""
3052
=>
AssertFormatAsync
("""
3074
=>
AssertFormatAsync
("""
3096
=>
AssertFormatAsync
("""
3122
=>
AssertFormatAsync
("""
3154
=>
AssertFormatAsync
("""
3182
=>
AssertFormatAsync
("""
3202
=>
AssertFormatAsync
("""
3224
=>
AssertFormatAsync
("""
3248
=>
AssertFormatAsync
("""
3272
=>
AssertFormatAsync
("""
3294
=>
AssertFormatAsync
("""
3318
=>
AssertFormatAsync
("""
3344
=>
AssertFormatAsync
("""
3368
=>
AssertFormatAsync
("""
3384
=>
AssertFormatAsync
("""
3412
=>
AssertFormatAsync
("""
3448
=>
AssertFormatAsync
("""
3468
=>
AssertFormatAsync
("""
3488
=>
AssertFormatAsync
("""
3500
=>
AssertFormatAsync
("""
3526
=>
AssertFormatAsync
("""
3547
=>
AssertFormatAsync
("""
3569
=>
AssertFormatAsync
("""
3597
=>
AssertFormatAsync
("""
3621
=>
AssertFormatAsync
("""
3655
await
AssertFormatAsync
(properlyFormattedCode, properlyFormattedCode);
3660
=>
AssertFormatAsync
("""
3684
=>
AssertFormatAsync
("""
3710
=>
AssertFormatAsync
("""
3736
=>
AssertFormatAsync
("""
3762
=>
AssertFormatAsync
("""
3778
=>
AssertFormatAsync
("""
3796
=>
AssertFormatAsync
("""
3816
=>
AssertFormatAsync
("""
3836
=>
AssertFormatAsync
("""
3848
=>
AssertFormatAsync
("""
3862
=>
AssertFormatAsync
("""
3888
=>
AssertFormatAsync
("""
3912
=>
AssertFormatAsync
("""
3938
=>
AssertFormatAsync
("""
3945
=>
AssertFormatAsync
("""
3957
=>
AssertFormatAsync
("""
3979
=>
AssertFormatAsync
("""
3997
=>
AssertFormatAsync
("""
4031
=>
AssertFormatAsync
("""
4045
=>
AssertFormatAsync
("""
4061
=>
AssertFormatAsync
("""
4080
=>
AssertFormatAsync
("""
4094
=> await
AssertFormatAsync
(@"using System;", @" using System;");
4098
=>
AssertFormatAsync
("""
4122
=>
AssertFormatAsync
("""
4142
=>
AssertFormatAsync
("""
4162
=>
AssertFormatAsync
("""
4189
await
AssertFormatAsync
(code, code);
4194
=>
AssertFormatAsync
("""
4214
=>
AssertFormatAsync
("""
4238
=>
AssertFormatAsync
("""
4258
=>
AssertFormatAsync
("""
4278
=>
AssertFormatAsync
("""
4294
=>
AssertFormatAsync
("""
4316
=>
AssertFormatAsync
("""
4330
=>
AssertFormatAsync
("""
4344
=>
AssertFormatAsync
("""
4370
=>
AssertFormatAsync
("""
4390
=>
AssertFormatAsync
("""
4410
=>
AssertFormatAsync
("""
4428
=>
AssertFormatAsync
("""
4472
=>
AssertFormatAsync
("""
4502
=>
AssertFormatAsync
("""
4530
=>
AssertFormatAsync
("""
4550
=>
AssertFormatAsync
("""
4576
=>
AssertFormatAsync
("""
4602
=>
AssertFormatAsync
("""
4628
=>
AssertFormatAsync
("""
4648
=>
AssertFormatAsync
("""
4676
=>
AssertFormatAsync
("""
4699
=>
AssertFormatAsync
("""
4717
=>
AssertFormatAsync
("""
4749
=>
AssertFormatAsync
("""
4773
=>
AssertFormatAsync
(@"W )b", @" W )b");
4777
=>
AssertFormatAsync
("""
4791
=>
AssertFormatAsync
("""
4866
=>
AssertFormatAsync
("""
4894
=>
AssertFormatAsync
("""
4930
=>
AssertFormatAsync
("""
4966
=>
AssertFormatAsync
("""
5030
=>
AssertFormatAsync
("""
5060
=>
AssertFormatAsync
("""
5079
=>
AssertFormatAsync
("""
5099
=>
AssertFormatAsync
("""
5119
=>
AssertFormatAsync
("""
5139
=>
AssertFormatAsync
("""
5159
=>
AssertFormatAsync
("""
5173
=>
AssertFormatAsync
("""
5191
=>
AssertFormatAsync
("""
5213
=>
AssertFormatAsync
("""
5235
=>
AssertFormatAsync
("""
5259
=>
AssertFormatAsync
("""
5281
=>
AssertFormatAsync
("""
5295
=>
AssertFormatAsync
("""
5322
=>
AssertFormatAsync
("""
5348
=>
AssertFormatAsync
("""
5374
=>
AssertFormatAsync
("""
5397
await
AssertFormatAsync
("""
5421
await
AssertFormatAsync
("""
5447
await
AssertFormatAsync
("""
5484
await
AssertFormatAsync
(expectedCode, code, changedOptionSet: changingOptions);
5489
=>
AssertFormatAsync
("""
5512
=>
AssertFormatAsync
("""
5543
=>
AssertFormatAsync
("""
5564
=>
AssertFormatAsync
("""
5585
=>
AssertFormatAsync
("""
5610
=>
AssertFormatAsync
("""
5633
=>
AssertFormatAsync
("""
5670
=>
AssertFormatAsync
("""
5707
=>
AssertFormatAsync
("""
5737
=>
AssertFormatAsync
("""
5769
=>
AssertFormatAsync
("""
5804
=>
AssertFormatAsync
($$"""
5832
=>
AssertFormatAsync
("""
5860
=>
AssertFormatAsync
("""
5886
=>
AssertFormatAsync
("""
5915
=>
AssertFormatAsync
("""
5929
=>
AssertFormatAsync
("""
5948
=>
AssertFormatAsync
("""
5974
=>
AssertFormatAsync
("""
5990
=>
AssertFormatAsync
("""
6006
=>
AssertFormatAsync
("""
6030
=>
AssertFormatAsync
("""
6058
=>
AssertFormatAsync
("""
6088
=>
AssertFormatAsync
("""
6118
=>
AssertFormatAsync
("", "\u001A");
6122
=>
AssertFormatAsync
("""
6140
=>
AssertFormatAsync
("""
6187
await
AssertFormatAsync
("""
6216
=>
AssertFormatAsync
("""
6240
=>
AssertFormatAsync
("""
6262
=>
AssertFormatAsync
("""
6322
=>
AssertFormatAsync
("""
6335
await
AssertFormatAsync
("""
6366
await
AssertFormatAsync
("""
6460
await
AssertFormatAsync
("""
6559
await
AssertFormatAsync
("""
6571
await
AssertFormatAsync
("""
6583
await
AssertFormatAsync
("""
6598
=>
AssertFormatAsync
("""
6636
=>
AssertFormatAsync
("""
6696
await
AssertFormatAsync
("""
6726
=>
AssertFormatAsync
("""
6760
=>
AssertFormatAsync
("""
6794
=>
AssertFormatAsync
("""
6843
await
AssertFormatAsync
(code, code);
6884
await
AssertFormatAsync
(expected, """
6916
await
AssertFormatAsync
(expected, expected, changedOptionSet: optionSet);
6923
await
AssertFormatAsync
("""
6942
await
AssertFormatAsync
("""
6960
await
AssertFormatAsync
("""
6992
await
AssertFormatAsync
("""
7023
await
AssertFormatAsync
("""
7054
await
AssertFormatAsync
("""
7085
await
AssertFormatAsync
("""
7116
await
AssertFormatAsync
("""
7147
await
AssertFormatAsync
("""
7178
await
AssertFormatAsync
("""
7209
await
AssertFormatAsync
("""
7240
await
AssertFormatAsync
("""
7271
await
AssertFormatAsync
("""
7302
await
AssertFormatAsync
("""
7333
await
AssertFormatAsync
("""
7364
await
AssertFormatAsync
("""
7395
await
AssertFormatAsync
("""
7426
await
AssertFormatAsync
("""
7457
await
AssertFormatAsync
("""
7485
await
AssertFormatAsync
("""
7518
await
AssertFormatAsync
("""
7537
await
AssertFormatAsync
("""
7556
await
AssertFormatAsync
("""
7579
await
AssertFormatAsync
("""
7613
await
AssertFormatAsync
("""
7648
await
AssertFormatAsync
("""
7694
await
AssertFormatAsync
("""
7717
=>
AssertFormatAsync
("""
7745
=>
AssertFormatAsync
("""
7771
=>
AssertFormatAsync
("""
7795
=>
AssertFormatAsync
("""
7821
=>
AssertFormatAsync
("""
7845
=>
AssertFormatAsync
(""""
7869
=>
AssertFormatAsync
("""
7895
=>
AssertFormatAsync
("""
7919
=>
AssertFormatAsync
("""
7945
=>
AssertFormatAsync
("""
7969
=>
AssertFormatAsync
("""
7995
=>
AssertFormatAsync
("""
8019
=>
AssertFormatAsync
("""
8041
=>
AssertFormatAsync
(""""
8063
=>
AssertFormatAsync
("""
8091
=>
AssertFormatAsync
("""
8115
=>
AssertFormatAsync
("""
8139
=>
AssertFormatAsync
("""
8161
=>
AssertFormatAsync
("""
8183
=>
AssertFormatAsync
("""
8208
await
AssertFormatAsync
("""
8237
await
AssertFormatAsync
("""
8262
=>
AssertFormatAsync
("""
8282
=>
AssertFormatAsync
("""
8322
=>
AssertFormatAsync
("""
8351
=>
AssertFormatAsync
("""
8380
=>
AssertFormatAsync
("""
8424
await
AssertFormatAsync
("""
8455
await
AssertFormatAsync
(code, code);
8467
await
AssertFormatAsync
("""
8500
=>
AssertFormatAsync
("""
8539
await
AssertFormatAsync
(code, code);
8544
=>
AssertFormatAsync
("""
8576
await
AssertFormatAsync
("""
8610
await
AssertFormatAsync
("""
8643
await
AssertFormatAsync
("""
8671
=>
AssertFormatAsync
("""
8697
await
AssertFormatAsync
("""
8742
await
AssertFormatAsync
(code, code);
8748
=>
AssertFormatAsync
("""
8768
=>
AssertFormatAsync
("""
8807
await
AssertFormatAsync
("""
8845
await
AssertFormatAsync
("""
8869
await
AssertFormatAsync
("""
8895
await
AssertFormatAsync
("""
8938
await
AssertFormatAsync
("""
8967
await
AssertFormatAsync
("""
9009
await
AssertFormatAsync
("""
9053
await
AssertFormatAsync
("""
9102
await
AssertFormatAsync
(code, code);
9114
await
AssertFormatAsync
("""
9131
=>
AssertFormatAsync
("""
9167
await
AssertFormatAsync
(code, code);
9184
await
AssertFormatAsync
(code, code);
9189
=>
AssertFormatAsync
("""
9213
=>
AssertFormatAsync
("""
9229
=>
AssertFormatAsync
("""
9253
=>
AssertFormatAsync
("""
9353
await
AssertFormatAsync
(code, code);
9369
await
AssertFormatAsync
(code, code);
9401
return
AssertFormatAsync
(expected, input);
9406
=>
AssertFormatAsync
("""
9451
await
AssertFormatAsync
(code, code);
9456
=>
AssertFormatAsync
(
9473
=>
AssertFormatAsync
(
9494
=>
AssertFormatAsync
(
9514
=>
AssertFormatAsync
(
9549
await
AssertFormatAsync
(code, code);
9558
=>
AssertFormatAsync
("""
9582
=>
AssertFormatAsync
("""
9606
=>
AssertFormatAsync
("""
9630
=>
AssertFormatAsync
("""
9654
=>
AssertFormatAsync
("""
9678
=>
AssertFormatAsync
(
9710
=>
AssertFormatAsync
(
9751
await
AssertFormatAsync
(
9776
await
AssertFormatAsync
(
9807
await
AssertFormatAsync
(
9832
=>
AssertFormatAsync
(
9850
=>
AssertFormatAsync
(
9882
=>
AssertFormatAsync
(
9913
await
AssertFormatAsync
(
9939
await
AssertFormatAsync
(
9960
=>
AssertFormatAsync
(
9984
=>
AssertFormatAsync
("""
10010
=>
AssertFormatAsync
("""
10032
=>
AssertFormatAsync
("""
10054
=>
AssertFormatAsync
("""
10072
=>
AssertFormatAsync
("""
10090
=>
AssertFormatAsync
("""
10108
=>
AssertFormatAsync
("""
10128
=>
AssertFormatAsync
("""
10164
=>
AssertFormatAsync
(
10198
await
AssertFormatAsync
(
10228
=>
AssertFormatAsync
(
10264
await
AssertFormatAsync
(
10296
=>
AssertFormatAsync
("""
10318
=>
AssertFormatAsync
("""
10342
=>
AssertFormatAsync
(
10380
await
AssertFormatAsync
(
10420
await
AssertFormatAsync
(
10474
await
AssertFormatAsync
(code, code, changedOptionSet: changingOptions);
10479
=>
AssertFormatAsync
(
10493
=>
AssertFormatAsync
(
10507
=>
AssertFormatAsync
(
10521
=>
AssertFormatAsync
(
10535
=>
AssertFormatAsync
(
10559
await
AssertFormatAsync
(code: code, expected: """
10578
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10598
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10622
await
AssertFormatAsync
(code: code, expected: """
10641
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10661
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10685
await
AssertFormatAsync
(code: code, expected: """
10704
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10724
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10750
await
AssertFormatAsync
(code: code, expected: """
10771
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10793
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10809
=>
AssertFormatAsync
("""
10828
=>
AssertFormatAsync
("""
10847
=>
AssertFormatAsync
("""
10866
=>
AssertFormatAsync
("""
10885
=>
AssertFormatAsync
(
10901
=>
AssertFormatAsync
(
10917
=>
AssertFormatAsync
(
10933
=>
AssertFormatAsync
(
10951
await
AssertFormatAsync
(
10974
=>
AssertFormatAsync
(
10992
=>
AssertFormatAsync
(
11009
=>
AssertFormatAsync
(
11034
=>
AssertFormatAsync
(
11059
=>
AssertFormatAsync
(
11084
=>
AssertFormatAsync
(
11109
=>
AssertFormatAsync
(
11132
=>
AssertFormatAsync
(
11152
=>
AssertFormatAsync
(
11172
=>
AssertFormatAsync
(
11192
=>
AssertFormatAsync
(
11206
=>
AssertFormatAsync
(
11220
=>
AssertFormatAsync
(
11238
=>
AssertFormatAsync
(
11252
=>
AssertFormatAsync
(
11272
=>
AssertFormatAsync
(
11292
=>
AssertFormatAsync
(
11306
=>
AssertFormatAsync
(
11320
=>
AssertFormatAsync
(expected: """
11328
=>
AssertFormatAsync
(
11342
=>
AssertFormatAsync
(
11356
=>
AssertFormatAsync
(
11380
=>
AssertFormatAsync
(expected, text);
11384
=>
AssertFormatAsync
(
11394
=>
AssertFormatAsync
(
Formatting\FormattingTests_FunctionPointers.cs (6)
18
=>
AssertFormatAsync
("""
32
=>
AssertFormatAsync
("""
46
=>
AssertFormatAsync
("""
60
=>
AssertFormatAsync
("""
74
=>
AssertFormatAsync
("""
88
=>
AssertFormatAsync
("""
Formatting\FormattingTests_Patterns.cs (13)
64
await
AssertFormatAsync
(expected, $$"""
152
await
AssertFormatAsync
(expected, $$"""
206
await
AssertFormatAsync
(expected, $$"""
293
await
AssertFormatAsync
(expected, $$"""
306
=>
AssertFormatAsync
("""
334
=>
AssertFormatAsync
("""
388
=>
AssertFormatAsync
("""
442
=>
AssertFormatAsync
("""
472
=>
AssertFormatAsync
("""
502
=>
AssertFormatAsync
("""
528
=>
AssertFormatAsync
("""
554
=>
AssertFormatAsync
("""
580
=>
AssertFormatAsync
("""
Formatting\FormattingTriviaTests.cs (66)
24
=>
AssertFormatAsync
("""
48
=>
AssertFormatAsync
("""
58
=>
AssertFormatAsync
("""
68
=>
AssertFormatAsync
("""
84
=>
AssertFormatAsync
("""
98
=>
AssertFormatAsync
("""
116
=>
AssertFormatAsync
("""
137
=>
AssertFormatAsync
("""
160
=>
AssertFormatAsync
("""
187
=>
AssertFormatAsync
("""
210
=>
AssertFormatAsync
("""
233
=>
AssertFormatAsync
("""
258
=>
AssertFormatAsync
("""
293
=>
AssertFormatAsync
("""
328
=>
AssertFormatAsync
("""
347
=>
AssertFormatAsync
("""
370
=>
AssertFormatAsync
("""
389
=>
AssertFormatAsync
("""
412
=>
AssertFormatAsync
("""
437
=>
AssertFormatAsync
("""
464
=>
AssertFormatAsync
("""
493
=>
AssertFormatAsync
("""
524
=>
AssertFormatAsync
("""
546
=>
AssertFormatAsync
("""
567
=>
AssertFormatAsync
("""
586
=>
AssertFormatAsync
("""
608
=>
AssertFormatAsync
("""
631
=>
AssertFormatAsync
("""
652
=>
AssertFormatAsync
("""
675
=>
AssertFormatAsync
("""
696
=>
AssertFormatAsync
("""
715
=>
AssertFormatAsync
("""
736
=>
AssertFormatAsync
("""
757
=>
AssertFormatAsync
("""
780
=>
AssertFormatAsync
("""
803
=>
AssertFormatAsync
("""
830
=>
AssertFormatAsync
("""
859
=>
AssertFormatAsync
("""
884
=>
AssertFormatAsync
("""
911
=>
AssertFormatAsync
("""
946
=>
AssertFormatAsync
("""
979
=>
AssertFormatAsync
("""
1010
=>
AssertFormatAsync
("""
1033
=>
AssertFormatAsync
("""
1056
=>
AssertFormatAsync
("""
1085
=>
AssertFormatAsync
("""
1112
=>
AssertFormatAsync
("""
1137
=>
AssertFormatAsync
("""
1162
=>
AssertFormatAsync
("""
1187
=>
AssertFormatAsync
("""
1214
=>
AssertFormatAsync
("""
1254
=>
AssertFormatAsync
("""
1281
=>
AssertFormatAsync
("""
1306
=>
AssertFormatAsync
("""
1328
=>
AssertFormatAsync
("""
1361
await
AssertFormatAsync
(content, content);
1366
=>
AssertFormatAsync
("""
1392
=>
AssertFormatAsync
("""
1412
=>
AssertFormatAsync
("""
1420
=>
AssertFormatAsync
("""
1444
=>
AssertFormatAsync
("""
1464
=>
AssertFormatAsync
("""
1497
=>
AssertFormatAsync
(@"> Roslyn.Utilities.dll! Basic", @"> Roslyn.Utilities.dll! Basic");
1502
=>
AssertFormatAsync
(@"> Roslyn.Utilities.dll! Line 43 + 0x5 bytes Basic", @"> Roslyn.Utilities.dll! Line 43 + 0x5 bytes Basic");
1506
=>
AssertFormatAsync
("""
1542
=>
AssertFormatAsync
("""