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
("""
6454
await
AssertFormatAsync
(expected, code, changedOptionSet: optionSet);
6462
await
AssertFormatAsync
("""
6561
await
AssertFormatAsync
("""
6573
await
AssertFormatAsync
("""
6585
await
AssertFormatAsync
("""
6600
=>
AssertFormatAsync
("""
6638
=>
AssertFormatAsync
("""
6698
await
AssertFormatAsync
("""
6728
=>
AssertFormatAsync
("""
6762
=>
AssertFormatAsync
("""
6796
=>
AssertFormatAsync
("""
6845
await
AssertFormatAsync
(code, code);
6886
await
AssertFormatAsync
(expected, """
6918
await
AssertFormatAsync
(expected, expected, changedOptionSet: optionSet);
6925
await
AssertFormatAsync
("""
6944
await
AssertFormatAsync
("""
6962
await
AssertFormatAsync
("""
6994
await
AssertFormatAsync
("""
7025
await
AssertFormatAsync
("""
7056
await
AssertFormatAsync
("""
7087
await
AssertFormatAsync
("""
7118
await
AssertFormatAsync
("""
7149
await
AssertFormatAsync
("""
7180
await
AssertFormatAsync
("""
7211
await
AssertFormatAsync
("""
7242
await
AssertFormatAsync
("""
7273
await
AssertFormatAsync
("""
7304
await
AssertFormatAsync
("""
7335
await
AssertFormatAsync
("""
7366
await
AssertFormatAsync
("""
7397
await
AssertFormatAsync
("""
7428
await
AssertFormatAsync
("""
7459
await
AssertFormatAsync
("""
7487
await
AssertFormatAsync
("""
7536
await
AssertFormatAsync
(expected, code, changedOptionSet: options);
7543
await
AssertFormatAsync
("""
7562
await
AssertFormatAsync
("""
7585
await
AssertFormatAsync
("""
7619
await
AssertFormatAsync
("""
7654
await
AssertFormatAsync
("""
7700
await
AssertFormatAsync
("""
7723
=>
AssertFormatAsync
("""
7751
=>
AssertFormatAsync
("""
7777
=>
AssertFormatAsync
("""
7801
=>
AssertFormatAsync
("""
7827
=>
AssertFormatAsync
("""
7851
=>
AssertFormatAsync
(""""
7875
=>
AssertFormatAsync
("""
7901
=>
AssertFormatAsync
("""
7925
=>
AssertFormatAsync
("""
7951
=>
AssertFormatAsync
("""
7975
=>
AssertFormatAsync
("""
8001
=>
AssertFormatAsync
("""
8025
=>
AssertFormatAsync
("""
8047
=>
AssertFormatAsync
(""""
8069
=>
AssertFormatAsync
("""
8097
=>
AssertFormatAsync
("""
8121
=>
AssertFormatAsync
("""
8145
=>
AssertFormatAsync
("""
8167
=>
AssertFormatAsync
("""
8189
=>
AssertFormatAsync
("""
8214
await
AssertFormatAsync
("""
8243
await
AssertFormatAsync
("""
8268
=>
AssertFormatAsync
("""
8327
await
AssertFormatAsync
(expected, code);
8361
await
AssertFormatAsync
(expected, code);
8395
await
AssertFormatAsync
(expected, code);
8431
await
AssertFormatAsync
(expected, code);
8450
await
AssertFormatAsync
("""
8481
await
AssertFormatAsync
(code, code);
8523
await
AssertFormatAsync
(expected, code, changedOptionSet: optionSet);
8528
=>
AssertFormatAsync
("""
8567
await
AssertFormatAsync
(code, code);
8572
=>
AssertFormatAsync
("""
8604
await
AssertFormatAsync
("""
8638
await
AssertFormatAsync
("""
8671
await
AssertFormatAsync
("""
8699
=>
AssertFormatAsync
("""
8725
await
AssertFormatAsync
("""
8770
await
AssertFormatAsync
(code, code);
8776
=>
AssertFormatAsync
("""
8796
=>
AssertFormatAsync
("""
8835
await
AssertFormatAsync
("""
8873
await
AssertFormatAsync
("""
8897
await
AssertFormatAsync
("""
8923
await
AssertFormatAsync
("""
8966
await
AssertFormatAsync
("""
8995
await
AssertFormatAsync
("""
9037
await
AssertFormatAsync
("""
9081
await
AssertFormatAsync
("""
9130
await
AssertFormatAsync
(code, code);
9142
await
AssertFormatAsync
("""
9159
=>
AssertFormatAsync
("""
9195
await
AssertFormatAsync
(code, code);
9212
await
AssertFormatAsync
(code, code);
9217
=>
AssertFormatAsync
("""
9241
=>
AssertFormatAsync
("""
9257
=>
AssertFormatAsync
("""
9281
=>
AssertFormatAsync
("""
9381
await
AssertFormatAsync
(code, code);
9397
await
AssertFormatAsync
(code, code);
9429
return
AssertFormatAsync
(expected, input);
9434
=>
AssertFormatAsync
("""
9479
await
AssertFormatAsync
(code, code);
9484
=>
AssertFormatAsync
(
9501
=>
AssertFormatAsync
(
9522
=>
AssertFormatAsync
(
9542
=>
AssertFormatAsync
(
9577
await
AssertFormatAsync
(code, code);
9586
=>
AssertFormatAsync
("""
9610
=>
AssertFormatAsync
("""
9634
=>
AssertFormatAsync
("""
9658
=>
AssertFormatAsync
("""
9682
=>
AssertFormatAsync
("""
9706
=>
AssertFormatAsync
(
9738
=>
AssertFormatAsync
(
9779
await
AssertFormatAsync
(
9804
await
AssertFormatAsync
(
9835
await
AssertFormatAsync
(
9860
=>
AssertFormatAsync
(
9878
=>
AssertFormatAsync
(
9910
=>
AssertFormatAsync
(
9941
await
AssertFormatAsync
(
9967
await
AssertFormatAsync
(
9988
=>
AssertFormatAsync
(
10012
=>
AssertFormatAsync
("""
10038
=>
AssertFormatAsync
("""
10060
=>
AssertFormatAsync
("""
10082
=>
AssertFormatAsync
("""
10100
=>
AssertFormatAsync
("""
10118
=>
AssertFormatAsync
("""
10136
=>
AssertFormatAsync
("""
10156
=>
AssertFormatAsync
("""
10192
=>
AssertFormatAsync
(
10226
await
AssertFormatAsync
(
10256
=>
AssertFormatAsync
(
10292
await
AssertFormatAsync
(
10324
=>
AssertFormatAsync
("""
10346
=>
AssertFormatAsync
("""
10370
=>
AssertFormatAsync
(
10408
await
AssertFormatAsync
(
10448
await
AssertFormatAsync
(
10502
await
AssertFormatAsync
(code, code, changedOptionSet: changingOptions);
10507
=>
AssertFormatAsync
(
10521
=>
AssertFormatAsync
(
10535
=>
AssertFormatAsync
(
10549
=>
AssertFormatAsync
(
10563
=>
AssertFormatAsync
(
10587
await
AssertFormatAsync
(code: code, expected: """
10606
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10626
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10650
await
AssertFormatAsync
(code: code, expected: """
10669
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10689
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10713
await
AssertFormatAsync
(code: code, expected: """
10732
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10752
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10778
await
AssertFormatAsync
(code: code, expected: """
10799
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10821
await
AssertFormatAsync
(code: code, changedOptionSet: options, expected: """
10837
=>
AssertFormatAsync
("""
10856
=>
AssertFormatAsync
("""
10875
=>
AssertFormatAsync
("""
10894
=>
AssertFormatAsync
("""
10913
=>
AssertFormatAsync
(
10929
=>
AssertFormatAsync
(
10945
=>
AssertFormatAsync
(
10961
=>
AssertFormatAsync
(
10979
await
AssertFormatAsync
(
11002
=>
AssertFormatAsync
(
11020
=>
AssertFormatAsync
(
11037
=>
AssertFormatAsync
(
11062
=>
AssertFormatAsync
(
11087
=>
AssertFormatAsync
(
11112
=>
AssertFormatAsync
(
11137
=>
AssertFormatAsync
(
11160
=>
AssertFormatAsync
(
11180
=>
AssertFormatAsync
(
11200
=>
AssertFormatAsync
(
11220
=>
AssertFormatAsync
(
11234
=>
AssertFormatAsync
(
11248
=>
AssertFormatAsync
(
11266
=>
AssertFormatAsync
(
11280
=>
AssertFormatAsync
(
11300
=>
AssertFormatAsync
(
11320
=>
AssertFormatAsync
(
11334
=>
AssertFormatAsync
(
11348
=>
AssertFormatAsync
(expected: """
11356
=>
AssertFormatAsync
(
11370
=>
AssertFormatAsync
(
11384
=>
AssertFormatAsync
(
11408
=>
AssertFormatAsync
(expected, text);
11412
=>
AssertFormatAsync
(
11422
=>
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
("""