481 references to AssertFormatAsync
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (481)
Formatting\FormattingTests.cs (400)
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 965await AssertFormatAsync(@"class Program 1006await AssertFormatAsync(@"class Class2 1042await AssertFormatAsync(@"class Class2 1075await AssertFormatAsync(@"class Class2 1162await AssertFormatAsync( 1201await AssertFormatAsync( 1240await AssertFormatAsync( 1279await AssertFormatAsync( 1318await AssertFormatAsync( 1357await AssertFormatAsync( 1396await AssertFormatAsync( 1435await AssertFormatAsync( 1467await AssertFormatAsync(@"class Class5 1511await AssertFormatAsync(@"class Class5 1582await AssertFormatAsync(@"class Class5 1650await AssertFormatAsync(@"class Class5 1731await AssertFormatAsync(@"class Program 1750await AssertFormatAsync(@"class f00 1886await AssertFormatAsync(@"class f00 { 2009await AssertFormatAsync(@"class c 2072await AssertFormatAsync(@"class c 2137await AssertFormatAsync(@"class Class 2164await AssertFormatAsync(@"class f00 2237await 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(@"class Program 3571await AssertFormatAsync(@"unsafe class Class1 3593await AssertFormatAsync(@"unsafe class Class1 3617await AssertFormatAsync(@"using System; 3624await AssertFormatAsync(@"namespace N 3634await AssertFormatAsync(@"class Program 3654await AssertFormatAsync(@"class Program 3670await AssertFormatAsync(@"using System; 3702await AssertFormatAsync(@"class Program 3714await AssertFormatAsync(@"class Program 3728await AssertFormatAsync(@"class Program 3745await AssertFormatAsync(@"using 3756=> await AssertFormatAsync(@"using System;", @" using System;"); 3761await AssertFormatAsync(@"class Program 3783await AssertFormatAsync(@"class Program 3817await AssertFormatAsync(expected, code); 3833await AssertFormatAsync(expected, code); 3849await AssertFormatAsync(code, code); 3869await AssertFormatAsync(expected, code); 3893await AssertFormatAsync(expected, code); 3913await AssertFormatAsync(expected, code); 3933await AssertFormatAsync(expected, code); 3955await AssertFormatAsync(expected, code); 3969await AssertFormatAsync(expected, code); 3983await AssertFormatAsync(expected, code); 4009await AssertFormatAsync(expected, code); 4029await AssertFormatAsync(expected, code); 4049await AssertFormatAsync(expected, code); 4067await AssertFormatAsync(expected, code); 4111await AssertFormatAsync(expected, code); 4141await AssertFormatAsync(expected, code); 4169await AssertFormatAsync(expected, code); 4189await AssertFormatAsync(expected, code); 4216await AssertFormatAsync(expected, code); 4243await AssertFormatAsync(expected, code); 4270await AssertFormatAsync(expected, code); 4291await AssertFormatAsync(expected, code); 4320await AssertFormatAsync(expected, code); 4344await AssertFormatAsync(expected, code); 4363await AssertFormatAsync(expected, code); 4396await AssertFormatAsync(expected, code); 4422await AssertFormatAsync(expected, code); 4432await AssertFormatAsync(expected, code); 4448await AssertFormatAsync(expected, code); 4488await AssertFormatAsync(expected, code); 4559await AssertFormatAsync(expected, code); 4597await AssertFormatAsync(expected, code); 4635await AssertFormatAsync(expected, code); 4702await AssertFormatAsync(expectedFormattedText, text); 4732await AssertFormatAsync(expectedCode, code); 4752await AssertFormatAsync(expectedCode, code); 4773await AssertFormatAsync(expectedCode, code); 4794await AssertFormatAsync(expectedCode, code); 4815await AssertFormatAsync(expectedCode, code); 4836await AssertFormatAsync(expectedCode, code); 4851await AssertFormatAsync(expectedCode, code); 4870await AssertFormatAsync(expectedCode, code); 4892await AssertFormatAsync(expectedCode, code); 4914await AssertFormatAsync(expectedCode, code); 4938await AssertFormatAsync(expectedCode, code); 4960await AssertFormatAsync(expectedCode, code); 4975await AssertFormatAsync(expectedCode, code); 5003await AssertFormatAsync(expectedCode, code); 5030await AssertFormatAsync(expectedCode, code); 5057await AssertFormatAsync(expectedCode, code); 5076await AssertFormatAsync(expectedCode, code); 5098await AssertFormatAsync(expectedCode, code, changedOptionSet: changingOptions); 5122await AssertFormatAsync(expectedCode, code, changedOptionSet: changingOptions); 5146await AssertFormatAsync(expectedCode, code, changedOptionSet: changingOptions); 5163await AssertFormatAsync(expectedCode, code, changedOptionSet: changingOptions); 5186await AssertFormatAsync(expectedCode, code); 5217await AssertFormatAsync(expectedCode, code); 5239await AssertFormatAsync(expectedCode, code); 5261await AssertFormatAsync(expectedCode, code); 5287await AssertFormatAsync(expectedCode, code); 5310await AssertFormatAsync(expectedCode, code); 5347await AssertFormatAsync(expectedCode, code); 5384await AssertFormatAsync(expectedCode, code); 5414await AssertFormatAsync(expectedCode, code); 5446await AssertFormatAsync(expectedCode, code); 5475await AssertFormatAsync(expectedCode, code); 5503await AssertFormatAsync(expectedCode, code); 5530await AssertFormatAsync(expectedCode, code); 5559await AssertFormatAsync(expectedCode, code); 5574await AssertFormatAsync(expectedCode, code); 5594await AssertFormatAsync(expectedCode, code); 5623await AssertFormatAsync(expectedCode, code); 5642await AssertFormatAsync(expected, code); 5660await AssertFormatAsync(expected, code); 5686await AssertFormatAsync(expected, code); 5716await AssertFormatAsync(expected, code); 5748await AssertFormatAsync(expected, code); 5780await AssertFormatAsync(expected, code); 5788await AssertFormatAsync("", code); 5808await AssertFormatAsync(expected, code); 5852await AssertFormatAsync(expected, code); 5886await AssertFormatAsync(expected, code, false, changingOptions); 5911await AssertFormatAsync(expected, code); 5934await AssertFormatAsync(expected, code); 5995await AssertFormatAsync(expected, code); 6006await AssertFormatAsync(expected, code); 6014await AssertFormatAsync(@"namespace ConsoleApplication1 6125await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 6213await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 6237await AssertFormatAsync(expectedDefault, code); 6249await AssertFormatAsync(expectedAfterCommaDisabled, code, changedOptionSet: optionSet); 6261await AssertFormatAsync(expectedBeforeCommaEnabled, code, changedOptionSet: optionSet); 6300await AssertFormatAsync(expected, code); 6356await AssertFormatAsync(expected, code); 6391await AssertFormatAsync(expected, code, false, changingOptions); 6426await AssertFormatAsync(expected, code); 6461await AssertFormatAsync(expected, code); 6496await AssertFormatAsync(expected, code); 6514await AssertFormatAsync(code, code); 6584await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 6585await AssertFormatAsync(expected, expected, changedOptionSet: optionSet); 6604await AssertFormatAsync(expected, code, changedOptionSet: options); 6622await AssertFormatAsync(expected, code, changedOptionSet: options); 6648await AssertFormatAsync(expected, code, changedOptionSet: options); 6679await AssertFormatAsync(expected, code, changedOptionSet: options); 6710await AssertFormatAsync(expected, code, changedOptionSet: options); 6741await AssertFormatAsync(expected, code, changedOptionSet: options); 6772await AssertFormatAsync(expected, code, changedOptionSet: options); 6803await AssertFormatAsync(expected, code, changedOptionSet: options); 6834await AssertFormatAsync(expected, code, changedOptionSet: options); 6865await AssertFormatAsync(expected, code, changedOptionSet: options); 6896await AssertFormatAsync(expected, code, changedOptionSet: options); 6927await AssertFormatAsync(expected, code, changedOptionSet: options); 6958await AssertFormatAsync(expected, code, changedOptionSet: options); 6989await AssertFormatAsync(expected, code, changedOptionSet: options); 7020await AssertFormatAsync(expected, code, changedOptionSet: options); 7051await AssertFormatAsync(expected, code, changedOptionSet: options); 7082await AssertFormatAsync(expected, code, changedOptionSet: options); 7113await AssertFormatAsync(expected, code, changedOptionSet: options); 7144await AssertFormatAsync(expected, code, changedOptionSet: options); 7176await AssertFormatAsync(expected, code, changedOptionSet: options); 7199await AssertFormatAsync(expected, code, changedOptionSet: options); 7218await AssertFormatAsync(expected, code, changedOptionSet: options); 7237await AssertFormatAsync(expected, code, changedOptionSet: options); 7271await AssertFormatAsync(expected, code, changedOptionSet: options); 7310await AssertFormatAsync(expected, code, changedOptionSet: options); 7352await AssertFormatAsync(expected, code, parseOptions: parseOptions); 7379await AssertFormatAsync(expected, code, changedOptionSet: changingOptions); 7408await AssertFormatAsync(expected, code); 7435await AssertFormatAsync(expected, code); 7461await AssertFormatAsync(expected, code); 7489await AssertFormatAsync(expected, code); 7515await AssertFormatAsync(expected, code); 7541await AssertFormatAsync(expected, code); 7569await AssertFormatAsync(expected, code); 7595await AssertFormatAsync(expected, code); 7623await AssertFormatAsync(expected, code); 7649await AssertFormatAsync(expected, code); 7677await AssertFormatAsync(expected, code); 7703await AssertFormatAsync(expected, code); 7727await AssertFormatAsync(expected, code); 7751await AssertFormatAsync(expected, code); 7781await AssertFormatAsync(expected, code); 7807await AssertFormatAsync(expected, code); 7833await AssertFormatAsync(expected, code); 7857await AssertFormatAsync(expected, code); 7881await AssertFormatAsync(expected, code); 7905await AssertFormatAsync(expected, code); 7913await AssertFormatAsync(@"using System; 7938await AssertFormatAsync(@"using System; 7960await AssertFormatAsync(@"class Program 8012await AssertFormatAsync(expected, code); 8042await AssertFormatAsync(expected, code); 8072await AssertFormatAsync(expected, code); 8104await AssertFormatAsync(expected, code); 8123await AssertFormatAsync(@"[Obsolete ( ""Test"" ), Obsolete ( )] 8148await AssertFormatAsync(code, code); 8186await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 8215await AssertFormatAsync(expected, code); 8229await AssertFormatAsync(code, code); 8255await AssertFormatAsync(expected, code); 8286await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 8318await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 8349await AssertFormatAsync(expected, code, changedOptionSet: optionSet); 8370await AssertFormatAsync(expected, code); 8395await AssertFormatAsync(expected, code, changedOptionSet: changingOptions); 8422await AssertFormatAsync(code, code); 8443await AssertFormatAsync(expected, code); 8477await AssertFormatAsync(expected, code); 8516await AssertFormatAsync(expected, code, changedOptionSet: changingOptions); 8524await AssertFormatAsync(@"class Program 8544await AssertFormatAsync(@"struct Goo 8566await AssertFormatAsync(@"class AClass 8605await AssertFormatAsync(@"class AClass 8630await AssertFormatAsync(@"class Class2 8668await AssertFormatAsync(@"class Class2 8708await AssertFormatAsync(@"class Class2 8751await AssertFormatAsync(code, code); 8763await AssertFormatAsync(@" 8777await AssertFormatAsync(@" 8808await AssertFormatAsync(code, code); 8823await AssertFormatAsync(code, code); 8829await AssertFormatAsync(@" 8851await AssertFormatAsync(@" 8865await AssertFormatAsync(@" 8887await AssertFormatAsync(@" 8968await AssertFormatAsync(code, code); 8982await AssertFormatAsync(code, code); 9012return AssertFormatAsync(expected, input); 9018await AssertFormatAsync(@" 9058await AssertFormatAsync(code, code); 9064await AssertFormatAsync( 9079await AssertFormatAsync( 9098await AssertFormatAsync( 9116await AssertFormatAsync( 9146await AssertFormatAsync(code, code); 9156await AssertFormatAsync(@" 9178await AssertFormatAsync(@" 9200await AssertFormatAsync(@" 9222await AssertFormatAsync(@" 9244await AssertFormatAsync(@" 9266await AssertFormatAsync( 9296await AssertFormatAsync( 9334await AssertFormatAsync( 9355await AssertFormatAsync( 9382await AssertFormatAsync( 9404await AssertFormatAsync( 9420await AssertFormatAsync( 9450await AssertFormatAsync( 9478await AssertFormatAsync( 9500await AssertFormatAsync( 9518await AssertFormatAsync( 9561await AssertFormatAsync(expectedCode, code); 9584await AssertFormatAsync(expectedCode, code); 9607await AssertFormatAsync(expectedCode, code); 9626await AssertFormatAsync(expectedCode, code); 9645await AssertFormatAsync(expectedCode, code); 9664await AssertFormatAsync(expectedCode, code); 9685await AssertFormatAsync(expectedCode, code); 9722await AssertFormatAsync(expectedCode, code); 9728await AssertFormatAsync( 9759await AssertFormatAsync( 9786await AssertFormatAsync( 9819await AssertFormatAsync( 9864await AssertFormatAsync(expectedCode, code); 9888await AssertFormatAsync(expectedCode, code); 9894await AssertFormatAsync( 9929await AssertFormatAsync( 9975await AssertFormatAsync(code, code, changedOptionSet: changingOptions); 9981await AssertFormatAsync( 9993await AssertFormatAsync( 10005await AssertFormatAsync( 10017await AssertFormatAsync( 10029await AssertFormatAsync( 10048await AssertFormatAsync(code: code, expected: @" 10065await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10083await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10103await AssertFormatAsync(code: code, expected: @" 10120await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10138await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10158await AssertFormatAsync(code: code, expected: @" 10175await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10193await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10215await AssertFormatAsync(code: code, expected: @" 10234await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10254await AssertFormatAsync(code: code, changedOptionSet: options, expected: @" 10282await AssertFormatAsync(expectedCode, code); 10301await AssertFormatAsync(expectedCode, code); 10320await AssertFormatAsync(expectedCode, code); 10339await AssertFormatAsync(expectedCode, code); 10345await AssertFormatAsync( 10359await AssertFormatAsync( 10373await AssertFormatAsync( 10387await AssertFormatAsync( 10402await AssertFormatAsync( 10422await AssertFormatAsync( 10438await AssertFormatAsync( 10461await AssertFormatAsync( 10484await AssertFormatAsync( 10507await AssertFormatAsync( 10530await AssertFormatAsync( 10551await AssertFormatAsync( 10569await AssertFormatAsync( 10587await AssertFormatAsync( 10605await AssertFormatAsync( 10617await AssertFormatAsync( 10629await AssertFormatAsync( 10645await AssertFormatAsync( 10657await AssertFormatAsync( 10675await AssertFormatAsync( 10693await AssertFormatAsync( 10705await AssertFormatAsync( 10717await AssertFormatAsync(expected: """ 10727await AssertFormatAsync( 10739await AssertFormatAsync( 10751await AssertFormatAsync( 10773await 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)
76await AssertFormatAsync(expected, content, changedOptionSet: changingOptions); 167await AssertFormatAsync(expected, content, changedOptionSet: changingOptions); 224await AssertFormatAsync(expected, content, changedOptionSet: changingOptions); 314await AssertFormatAsync(expected, content, changedOptionSet: changingOptions); 347await AssertFormatAsync(expected, content); 406await AssertFormatAsync(expected, content); 465await AssertFormatAsync(expected, content); 500await AssertFormatAsync(expected, content); 535await 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, true); 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);