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