Skip to content

Commit fb701f0

Browse files
Indent test arguments
1 parent 6783c14 commit fb701f0

File tree

32 files changed

+6758
-6758
lines changed

32 files changed

+6758
-6758
lines changed

src/Analyzers/CSharp/Tests/GenerateMethod/GenerateConversionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class C
125125
public static implicit operator C(int v) => throw new NotImplementedException();
126126
}
127127
""",
128-
options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement));
128+
options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement));
129129

130130
[Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")]
131131
public Task TestGenerateImplicitConversionAwaitExpression()

src/Analyzers/CSharp/Tests/MakeLocalFunctionStatic/MakeLocalFunctionStaticTests.cs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -290,25 +290,25 @@ bool otherFunction()
290290
}
291291
}
292292
""",
293-
$$"""
294-
using System;
293+
$$"""
294+
using System;
295295
296-
class C
297-
{
298-
void M()
299-
{
300-
bool otherFunction()
301-
{
302-
return true;
303-
}{{leadingTrivia}}
304-
static int fibonacci(int n)
305-
{
306-
return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2);
307-
}
308-
}
309-
}
310-
""",
311-
parseOptions: CSharp8ParseOptions);
296+
class C
297+
{
298+
void M()
299+
{
300+
bool otherFunction()
301+
{
302+
return true;
303+
}{{leadingTrivia}}
304+
static int fibonacci(int n)
305+
{
306+
return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2);
307+
}
308+
}
309+
}
310+
""",
311+
parseOptions: CSharp8ParseOptions);
312312

313313
[Theory, Trait(Traits.Feature, Traits.Features.CodeActionsMakeLocalFunctionStatic)]
314314
[InlineData("")]
@@ -328,19 +328,19 @@ void M()
328328
}
329329
}
330330
""",
331-
$$"""
332-
using System;
331+
$$"""
332+
using System;
333333
334-
class C
335-
{
336-
void M()
337-
{
338-
bool otherFunction() => true;{{leadingTrivia}}
339-
static int fibonacci(int n) => n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2);
340-
}
341-
}
342-
""",
343-
parseOptions: CSharp8ParseOptions);
334+
class C
335+
{
336+
void M()
337+
{
338+
bool otherFunction() => true;{{leadingTrivia}}
339+
static int fibonacci(int n) => n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2);
340+
}
341+
}
342+
""",
343+
parseOptions: CSharp8ParseOptions);
344344

345345
[Theory, Trait(Traits.Feature, Traits.Features.CodeActionsMakeLocalFunctionStatic)]
346346
[InlineData("")]
@@ -378,7 +378,7 @@ static int fibonacci(int n)
378378
}
379379
}
380380
""",
381-
parseOptions: CSharp8ParseOptions);
381+
parseOptions: CSharp8ParseOptions);
382382

383383
[Theory, Trait(Traits.Feature, Traits.Features.CodeActionsMakeLocalFunctionStatic)]
384384
[InlineData("\r\n")]
@@ -415,7 +415,7 @@ static int fibonacci(int n)
415415
}
416416
}
417417
""",
418-
parseOptions: CSharp8ParseOptions);
418+
parseOptions: CSharp8ParseOptions);
419419

420420
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsMakeLocalFunctionStatic)]
421421
[WorkItem("https://github.com/dotnet/roslyn/issues/46858")]

src/Analyzers/CSharp/Tests/RemoveUnusedParametersAndValues/RemoveUnusedValueAssignmentTests.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5819,26 +5819,26 @@ int M(bool flag)
58195819
int M3() => 0;
58205820
}
58215821
""",
5822-
$$"""
5823-
class C
5824-
{
5825-
int M(bool flag)
5826-
{
5827-
int x;
5828-
if ({{condition}})
5829-
{
5830-
}
5831-
else
5832-
{
5833-
}
5822+
$$"""
5823+
class C
5824+
{
5825+
int M(bool flag)
5826+
{
5827+
int x;
5828+
if ({{condition}})
5829+
{
5830+
}
5831+
else
5832+
{
5833+
}
58345834
5835-
return x;
5836-
}
5835+
return x;
5836+
}
58375837
5838-
bool M2(out int x) { x = 0; return true; }
5839-
int M3() => 0;
5840-
}
5841-
""");
5838+
bool M2(out int x) { x = 0; return true; }
5839+
int M3() => 0;
5840+
}
5841+
""");
58425842

58435843
[Theory]
58445844
[InlineData(nameof(PreferDiscard))]

src/EditorFeatures/CSharpTest/Classification/SyntacticClassifierTests_Preprocessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ public Task ShortDiscardInAssignment(TestHost testHost)
10871087
=> TestInMethodAsync(
10881088
code: @"_ = 1;",
10891089
testHost: testHost,
1090-
expected: Classifications(Identifier("_"), Operators.Equals, Number("1"), Punctuation.Semicolon));
1090+
expected: Classifications(Identifier("_"), Operators.Equals, Number("1"), Punctuation.Semicolon));
10911091

10921092
[Theory, CombinatorialData]
10931093
public Task UnderscoreInLambda(TestHost testHost)

src/EditorFeatures/CSharpTest/CodeActions/AddUsing/AddUsingTests.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ IDictionary Method()
158158
}
159159
}
160160
""",
161-
testHost, index: 1);
161+
testHost, index: 1);
162162

163163
[Theory, CombinatorialData]
164164
public Task TestGenericWithNoArgs(TestHost testHost)
@@ -383,7 +383,7 @@ class Class
383383
}
384384
}
385385
""",
386-
count: 1);
386+
count: 1);
387387

388388
[Theory, CombinatorialData]
389389
public Task TestExistingUsing(TestHost testHost)
@@ -479,7 +479,7 @@ public static void Where(this Class c)
479479
}
480480
}
481481
""",
482-
parseOptions: Options.Regular);
482+
parseOptions: Options.Regular);
483483

484484
[Theory, CombinatorialData]
485485
public Task TestOnEnum(TestHost testHost)
@@ -1434,7 +1434,7 @@ public static void Bar()
14341434
}
14351435
}
14361436
""",
1437-
testHost);
1437+
testHost);
14381438

14391439
[Theory, CombinatorialData]
14401440
public Task TestSimpleSystemSortedUsings2(TestHost testHost)
@@ -1486,7 +1486,7 @@ public static void Bar()
14861486
}
14871487
}
14881488
""",
1489-
testHost);
1489+
testHost);
14901490

14911491
[Theory, CombinatorialData]
14921492
public Task TestSimpleSystemSortedUsings3(TestHost testHost)
@@ -1516,7 +1516,7 @@ void Method()
15161516
}
15171517
}
15181518
""",
1519-
testHost);
1519+
testHost);
15201520

15211521
[Theory, CombinatorialData]
15221522
public Task TestSimpleSystemUnsortedUsings1(TestHost testHost)
@@ -1568,7 +1568,7 @@ public static void Bar()
15681568
}
15691569
}
15701570
""",
1571-
testHost);
1571+
testHost);
15721572

15731573
[Theory, CombinatorialData]
15741574
public Task TestSimpleSystemUnsortedUsings2(TestHost testHost)
@@ -1620,7 +1620,7 @@ public static void Bar()
16201620
}
16211621
}
16221622
""",
1623-
testHost);
1623+
testHost);
16241624

16251625
[Theory, CombinatorialData]
16261626
public Task TestSimpleSystemUnsortedUsings3(TestHost testHost)
@@ -1650,7 +1650,7 @@ void Method()
16501650
}
16511651
}
16521652
""",
1653-
testHost);
1653+
testHost);
16541654

16551655
[Theory, CombinatorialData]
16561656
public Task TestSimpleBogusSystemUsings1(TestHost testHost)
@@ -1678,7 +1678,7 @@ void Method()
16781678
}
16791679
}
16801680
""",
1681-
testHost);
1681+
testHost);
16821682

16831683
[Theory, CombinatorialData]
16841684
public Task TestSimpleBogusSystemUsings2(TestHost testHost)
@@ -1706,7 +1706,7 @@ void Method()
17061706
}
17071707
}
17081708
""",
1709-
testHost);
1709+
testHost);
17101710

17111711
[Theory, CombinatorialData]
17121712
public Task TestUsingsWithComments(TestHost testHost)
@@ -1734,7 +1734,7 @@ void Method()
17341734
}
17351735
}
17361736
""",
1737-
testHost);
1737+
testHost);
17381738

17391739
// System Not on top cases
17401740
[Theory, CombinatorialData]
@@ -1787,7 +1787,7 @@ public static void Bar()
17871787
}
17881788
}
17891789
""",
1790-
testHost);
1790+
testHost);
17911791

17921792
[Theory, CombinatorialData]
17931793
public Task TestSimpleSystemSortedUsings5(TestHost testHost)
@@ -1837,7 +1837,7 @@ public static void Bar()
18371837
}
18381838
}
18391839
""",
1840-
testHost);
1840+
testHost);
18411841

18421842
[Theory, CombinatorialData]
18431843
public Task TestSimpleSystemSortedUsings4(TestHost testHost)
@@ -1867,7 +1867,7 @@ void Method()
18671867
}
18681868
}
18691869
""",
1870-
testHost, options: Option(GenerationOptions.PlaceSystemNamespaceFirst, false));
1870+
testHost, options: Option(GenerationOptions.PlaceSystemNamespaceFirst, false));
18711871

18721872
[Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538136")]
18731873
[WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538763")]
@@ -2166,8 +2166,8 @@ await TestAsync(
21662166
21672167
Expression
21682168
""",
2169-
GetScriptOptions(),
2170-
TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver));
2169+
GetScriptOptions(),
2170+
TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver));
21712171
}
21722172

21732173
[Theory, CombinatorialData]
@@ -2399,7 +2399,7 @@ static void Main(string[] args)
23992399
Log }
24002400
}
24012401
""",
2402-
testHost);
2402+
testHost);
24032403

24042404
[Theory, CombinatorialData]
24052405
[WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858085")]
@@ -4963,7 +4963,7 @@ public static void Bar()
49634963
}
49644964
}
49654965
""",
4966-
testHost);
4966+
testHost);
49674967

49684968
[Theory, CombinatorialData]
49694969
[WorkItem("https://github.com/dotnet/roslyn/issues/19796")]

0 commit comments

Comments
 (0)