395 references to AssertFormatAsync
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (395)
Formatting\FormattingTests.cs (314)
27
=> await
AssertFormatAsync
("namespace A { }", "namespace A{}");
38
await
AssertFormatAsync
(expected, content);
53
await
AssertFormatAsync
(expected, content);
71
await
AssertFormatAsync
(expected, content);
94
await
AssertFormatAsync
(expected, content);
117
await
AssertFormatAsync
(expected, content);
133
await
AssertFormatAsync
(expected, content);
165
await
AssertFormatAsync
(expected, content);
187
await
AssertFormatAsync
(expected, content);
206
await
AssertFormatAsync
(expected, content);
212
await
AssertFormatAsync
(@"public class C
244
await
AssertFormatAsync
(@"class C
278
await
AssertFormatAsync
(@"class C
312
await
AssertFormatAsync
(@"class C
336
await
AssertFormatAsync
(@"namespace Namespace1
403
await
AssertFormatAsync
(@"namespace MyNamespace
699
await
AssertFormatAsync
(@"namespace Namespace1
723
await
AssertFormatAsync
(@"class Class1
743
await
AssertFormatAsync
(@"class Class1
767
await
AssertFormatAsync
(@"namespace Namespace1
789
await
AssertFormatAsync
(@"class Class1
825
await
AssertFormatAsync
(@"class Class1
843
await
AssertFormatAsync
(@"class C
865
await
AssertFormatAsync
(@"class C
881
await
AssertFormatAsync
(@"class Class2
1467
await
AssertFormatAsync
(@"class Class5
1750
await
AssertFormatAsync
(@"class f00
2009
await
AssertFormatAsync
(@"class c
2164
await
AssertFormatAsync
(@"class f00
2297
await
AssertFormatAsync
(@"enum E
2312
=> await
AssertFormatAsync
(@"enum E { a = 10, b, c }", @"enum E { a = 10, b, c }");
2317
await
AssertFormatAsync
(@"class C
2343
await
AssertFormatAsync
(@"class C
2369
await
AssertFormatAsync
(@"class C
2399
await
AssertFormatAsync
(@"class C
2425
await
AssertFormatAsync
(@"class C
2451
await
AssertFormatAsync
(@"class C
2471
await
AssertFormatAsync
(@"class C
2493
await
AssertFormatAsync
(@"class C
2519
await
AssertFormatAsync
(@"class C
2547
await
AssertFormatAsync
(@"class C
2567
await
AssertFormatAsync
(@"class C
2585
await
AssertFormatAsync
(@"class C
2607
await
AssertFormatAsync
(@"class C
2623
await
AssertFormatAsync
(@"class C<T> where T : I
2633
await
AssertFormatAsync
(@"class C
2651
await
AssertFormatAsync
(@"class C
2676
await
AssertFormatAsync
(code, code);
2689
await
AssertFormatAsync
(code, code);
2702
await
AssertFormatAsync
(code, code);
2715
await
AssertFormatAsync
(code, code);
2721
await
AssertFormatAsync
(@"class C
2743
await
AssertFormatAsync
(@"class C
2761
await
AssertFormatAsync
(@"
2783
await
AssertFormatAsync
(@"
2820
await
AssertFormatAsync
(@"
2852
await
AssertFormatAsync
(@"
2881
await
AssertFormatAsync
(@"class C
2897
await
AssertFormatAsync
(@"class C
2917
await
AssertFormatAsync
(@"class C
2937
await
AssertFormatAsync
(@"class C
2961
await
AssertFormatAsync
(@"class C
2991
await
AssertFormatAsync
(@"class C
3017
await
AssertFormatAsync
(@"class C
3035
await
AssertFormatAsync
(@"class C
3055
await
AssertFormatAsync
(@"class C
3077
await
AssertFormatAsync
(@"class C
3099
await
AssertFormatAsync
(@"class C
3119
await
AssertFormatAsync
(@"class C
3141
await
AssertFormatAsync
(@"class C
3165
await
AssertFormatAsync
(@"class C
3187
await
AssertFormatAsync
(@"class Class
3201
await
AssertFormatAsync
(@"class Class
3227
await
AssertFormatAsync
(@"class Class
3261
await
AssertFormatAsync
(@"class C
3279
await
AssertFormatAsync
(@"class Program
3297
await
AssertFormatAsync
(@"class Class1
3307
await
AssertFormatAsync
(@"public class Class1
3331
await
AssertFormatAsync
(@"class Class1
3350
await
AssertFormatAsync
(@"class Class1
3370
await
AssertFormatAsync
(@"namespace ClassLibrary1
3396
await
AssertFormatAsync
(@"class Program
3418
await
AssertFormatAsync
(@"class Program
3447
await
AssertFormatAsync
(properlyFormattedCode, properlyFormattedCode);
3453
await
AssertFormatAsync
(@"class Program
3475
await
AssertFormatAsync
(@"class Program
3499
await
AssertFormatAsync
(@"class Program
3523
await
AssertFormatAsync
(@"class Program
3547
await
AssertFormatAsync
("""
3565
await
AssertFormatAsync
("""
3585
await
AssertFormatAsync
("""
3607
await
AssertFormatAsync
("""
3629
await
AssertFormatAsync
("""
3643
await
AssertFormatAsync
("""
3659
await
AssertFormatAsync
(@"class Program
3683
await
AssertFormatAsync
(@"unsafe class Class1
3705
await
AssertFormatAsync
(@"unsafe class Class1
3729
await
AssertFormatAsync
(@"using System;
3736
await
AssertFormatAsync
(@"namespace N
3746
await
AssertFormatAsync
(@"class Program
3766
await
AssertFormatAsync
(@"class Program
3782
await
AssertFormatAsync
(@"using System;
3814
await
AssertFormatAsync
(@"class Program
3826
await
AssertFormatAsync
(@"class Program
3840
await
AssertFormatAsync
(@"class Program
3857
await
AssertFormatAsync
(@"using
3868
=> await
AssertFormatAsync
(@"using System;", @" using System;");
3873
await
AssertFormatAsync
(@"class Program
3895
await
AssertFormatAsync
(@"class Program
3929
await
AssertFormatAsync
(expected, code);
3945
await
AssertFormatAsync
(expected, code);
3961
await
AssertFormatAsync
(code, code);
3981
await
AssertFormatAsync
(expected, code);
4005
await
AssertFormatAsync
(expected, code);
4025
await
AssertFormatAsync
(expected, code);
4045
await
AssertFormatAsync
(expected, code);
4065
await
AssertFormatAsync
(expected, code);
4087
await
AssertFormatAsync
(expected, code);
4101
await
AssertFormatAsync
(expected, code);
4115
await
AssertFormatAsync
(expected, code);
4141
await
AssertFormatAsync
(expected, code);
4161
await
AssertFormatAsync
(expected, code);
4181
await
AssertFormatAsync
(expected, code);
4199
await
AssertFormatAsync
(expected, code);
4243
await
AssertFormatAsync
(expected, code);
4273
await
AssertFormatAsync
(expected, code);
4301
await
AssertFormatAsync
(expected, code);
4321
await
AssertFormatAsync
(expected, code);
4348
await
AssertFormatAsync
(expected, code);
4375
await
AssertFormatAsync
(expected, code);
4402
await
AssertFormatAsync
(expected, code);
4423
await
AssertFormatAsync
(expected, code);
4452
await
AssertFormatAsync
(expected, code);
4476
await
AssertFormatAsync
(expected, code);
4495
await
AssertFormatAsync
(expected, code);
4528
await
AssertFormatAsync
(expected, code);
4554
await
AssertFormatAsync
(expected, code);
4564
await
AssertFormatAsync
(expected, code);
4580
await
AssertFormatAsync
(expected, code);
4620
await
AssertFormatAsync
(expected, code);
4687
await
AssertFormatAsync
(expected, code);
4725
await
AssertFormatAsync
(expected, code);
4763
await
AssertFormatAsync
(expected, code);
4830
await
AssertFormatAsync
(expectedFormattedText, text);
4860
await
AssertFormatAsync
(expectedCode, code);
4880
await
AssertFormatAsync
(expectedCode, code);
4901
await
AssertFormatAsync
(expectedCode, code);
4922
await
AssertFormatAsync
(expectedCode, code);
4943
await
AssertFormatAsync
(expectedCode, code);
4964
await
AssertFormatAsync
(expectedCode, code);
4979
await
AssertFormatAsync
(expectedCode, code);
4998
await
AssertFormatAsync
(expectedCode, code);
5020
await
AssertFormatAsync
(expectedCode, code);
5042
await
AssertFormatAsync
(expectedCode, code);
5066
await
AssertFormatAsync
(expectedCode, code);
5088
await
AssertFormatAsync
(expectedCode, code);
5103
await
AssertFormatAsync
(expectedCode, code);
5131
await
AssertFormatAsync
(expectedCode, code);
5158
await
AssertFormatAsync
(expectedCode, code);
5185
await
AssertFormatAsync
(expectedCode, code);
5204
await
AssertFormatAsync
(expectedCode, code);
5316
await
AssertFormatAsync
(expectedCode, code);
5347
await
AssertFormatAsync
(expectedCode, code);
5369
await
AssertFormatAsync
(expectedCode, code);
5391
await
AssertFormatAsync
(expectedCode, code);
5417
await
AssertFormatAsync
(expectedCode, code);
5440
await
AssertFormatAsync
(expectedCode, code);
5477
await
AssertFormatAsync
(expectedCode, code);
5514
await
AssertFormatAsync
(expectedCode, code);
5544
await
AssertFormatAsync
(expectedCode, code);
5576
await
AssertFormatAsync
(expectedCode, code);
5605
await
AssertFormatAsync
(expectedCode, code);
5644
await
AssertFormatAsync
(expectedCode, code);
5672
await
AssertFormatAsync
(expectedCode, code);
5699
await
AssertFormatAsync
(expectedCode, code);
5728
await
AssertFormatAsync
(expectedCode, code);
5743
await
AssertFormatAsync
(expectedCode, code);
5763
await
AssertFormatAsync
(expectedCode, code);
5792
await
AssertFormatAsync
(expectedCode, code);
5810
await
AssertFormatAsync
(expected, code);
5828
await
AssertFormatAsync
(expected, code);
5854
await
AssertFormatAsync
(expected, code);
5884
await
AssertFormatAsync
(expected, code);
5916
await
AssertFormatAsync
(expected, code);
5948
await
AssertFormatAsync
(expected, code);
5956
await
AssertFormatAsync
("", code);
5976
await
AssertFormatAsync
(expected, code);
6020
await
AssertFormatAsync
(expected, code);
6079
await
AssertFormatAsync
(expected, code);
6102
await
AssertFormatAsync
(expected, code);
6163
await
AssertFormatAsync
(expected, code);
6174
await
AssertFormatAsync
(expected, code);
6405
await
AssertFormatAsync
(expectedDefault, code);
6468
await
AssertFormatAsync
(expected, code);
6524
await
AssertFormatAsync
(expected, code);
6594
await
AssertFormatAsync
(expected, code);
6629
await
AssertFormatAsync
(expected, code);
6664
await
AssertFormatAsync
(expected, code);
6682
await
AssertFormatAsync
(code, code);
7520
await
AssertFormatAsync
(expected, code, parseOptions: parseOptions);
7576
await
AssertFormatAsync
(expected, code);
7603
await
AssertFormatAsync
(expected, code);
7629
await
AssertFormatAsync
(expected, code);
7657
await
AssertFormatAsync
(expected, code);
7683
await
AssertFormatAsync
(expected, code);
7709
await
AssertFormatAsync
(expected, code);
7737
await
AssertFormatAsync
(expected, code);
7763
await
AssertFormatAsync
(expected, code);
7791
await
AssertFormatAsync
(expected, code);
7817
await
AssertFormatAsync
(expected, code);
7845
await
AssertFormatAsync
(expected, code);
7871
await
AssertFormatAsync
(expected, code);
7895
await
AssertFormatAsync
(expected, code);
7919
await
AssertFormatAsync
(expected, code);
7949
await
AssertFormatAsync
(expected, code);
7975
await
AssertFormatAsync
(expected, code);
8001
await
AssertFormatAsync
(expected, code);
8025
await
AssertFormatAsync
(expected, code);
8049
await
AssertFormatAsync
(expected, code);
8073
await
AssertFormatAsync
(expected, code);
8128
await
AssertFormatAsync
(@"class Program
8180
await
AssertFormatAsync
(expected, code);
8210
await
AssertFormatAsync
(expected, code);
8240
await
AssertFormatAsync
(expected, code);
8272
await
AssertFormatAsync
(expected, code);
8316
await
AssertFormatAsync
(code, code);
8383
await
AssertFormatAsync
(expected, code);
8397
await
AssertFormatAsync
(code, code);
8423
await
AssertFormatAsync
(expected, code);
8538
await
AssertFormatAsync
(expected, code);
8590
await
AssertFormatAsync
(code, code);
8611
await
AssertFormatAsync
(expected, code);
8645
await
AssertFormatAsync
(expected, code);
8919
await
AssertFormatAsync
(code, code);
8945
await
AssertFormatAsync
(@"
8976
await
AssertFormatAsync
(code, code);
8991
await
AssertFormatAsync
(code, code);
8997
await
AssertFormatAsync
(@"
9019
await
AssertFormatAsync
(@"
9033
await
AssertFormatAsync
(@"
9055
await
AssertFormatAsync
(@"
9136
await
AssertFormatAsync
(code, code);
9150
await
AssertFormatAsync
(code, code);
9180
return
AssertFormatAsync
(expected, input);
9186
await
AssertFormatAsync
(@"
9226
await
AssertFormatAsync
(code, code);
9232
await
AssertFormatAsync
(
9247
await
AssertFormatAsync
(
9266
await
AssertFormatAsync
(
9284
await
AssertFormatAsync
(
9314
await
AssertFormatAsync
(code, code);
9324
await
AssertFormatAsync
(@"
9346
await
AssertFormatAsync
(@"
9368
await
AssertFormatAsync
(@"
9390
await
AssertFormatAsync
(@"
9412
await
AssertFormatAsync
(@"
9434
await
AssertFormatAsync
(
9464
await
AssertFormatAsync
(
9572
await
AssertFormatAsync
(
9588
await
AssertFormatAsync
(
9618
await
AssertFormatAsync
(
9686
await
AssertFormatAsync
(
9729
await
AssertFormatAsync
(expectedCode, code);
9752
await
AssertFormatAsync
(expectedCode, code);
9775
await
AssertFormatAsync
(expectedCode, code);
9794
await
AssertFormatAsync
(expectedCode, code);
9813
await
AssertFormatAsync
(expectedCode, code);
9832
await
AssertFormatAsync
(expectedCode, code);
9853
await
AssertFormatAsync
(expectedCode, code);
9890
await
AssertFormatAsync
(expectedCode, code);
9896
await
AssertFormatAsync
(
9954
await
AssertFormatAsync
(
10032
await
AssertFormatAsync
(expectedCode, code);
10056
await
AssertFormatAsync
(expectedCode, code);
10062
await
AssertFormatAsync
(
10187
await
AssertFormatAsync
(
10199
await
AssertFormatAsync
(
10211
await
AssertFormatAsync
(
10223
await
AssertFormatAsync
(
10235
await
AssertFormatAsync
(
10254
await
AssertFormatAsync
(code: code, expected: @"
10309
await
AssertFormatAsync
(code: code, expected: @"
10364
await
AssertFormatAsync
(code: code, expected: @"
10421
await
AssertFormatAsync
(code: code, expected: @"
10488
await
AssertFormatAsync
(expectedCode, code);
10507
await
AssertFormatAsync
(expectedCode, code);
10526
await
AssertFormatAsync
(expectedCode, code);
10545
await
AssertFormatAsync
(expectedCode, code);
10551
await
AssertFormatAsync
(
10565
await
AssertFormatAsync
(
10579
await
AssertFormatAsync
(
10593
await
AssertFormatAsync
(
10628
await
AssertFormatAsync
(
10644
await
AssertFormatAsync
(
10667
await
AssertFormatAsync
(
10690
await
AssertFormatAsync
(
10713
await
AssertFormatAsync
(
10736
await
AssertFormatAsync
(
10757
await
AssertFormatAsync
(
10775
await
AssertFormatAsync
(
10793
await
AssertFormatAsync
(
10811
await
AssertFormatAsync
(
10823
await
AssertFormatAsync
(
10835
await
AssertFormatAsync
(
10851
await
AssertFormatAsync
(
10863
await
AssertFormatAsync
(
10881
await
AssertFormatAsync
(
10899
await
AssertFormatAsync
(
10911
await
AssertFormatAsync
(
10923
await
AssertFormatAsync
(expected: """
10933
await
AssertFormatAsync
(
10945
await
AssertFormatAsync
(
10957
await
AssertFormatAsync
(
10979
await
AssertFormatAsync
(expected, text);
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)
343
await
AssertFormatAsync
(expected, content);
402
await
AssertFormatAsync
(expected, content);
461
await
AssertFormatAsync
(expected, content);
496
await
AssertFormatAsync
(expected, content);
531
await
AssertFormatAsync
(expected, content);
563
await
AssertFormatAsync
(expected, content);
595
await
AssertFormatAsync
(expected, content);
627
await
AssertFormatAsync
(expected, content);
659
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);