108 references to ImplicitTypeEverywhere
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (108)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (4)
245
""", new TestParameters(options: new UseImplicitTypeTests().
ImplicitTypeEverywhere
()));
614
""", new TestParameters(options: new UseImplicitTypeTests().
ImplicitTypeEverywhere
()));
657
""", new TestParameters(options: new UseImplicitTypeTests().
ImplicitTypeEverywhere
()));
692
""", new TestParameters(options: new UseImplicitTypeTests().
ImplicitTypeEverywhere
()));
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (101)
93
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
105
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
120
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
135
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
148
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
163
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
180
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
195
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
210
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
225
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
240
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
255
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
270
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
291
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
310
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
325
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
341
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
357
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
372
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
387
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
404
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
424
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
450
""", new(CSharpParseOptions.Default, options:
ImplicitTypeEverywhere
()));
492
""", new(options:
ImplicitTypeEverywhere
()));
532
""", new(options:
ImplicitTypeEverywhere
()));
555
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
575
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
601
""", new(options:
ImplicitTypeEverywhere
()));
627
""", new(options:
ImplicitTypeEverywhere
()));
655
""", new(options:
ImplicitTypeEverywhere
()));
683
""", new(options:
ImplicitTypeEverywhere
()));
709
""", new(options:
ImplicitTypeEverywhere
()));
735
""", new(options:
ImplicitTypeEverywhere
()));
761
""", new(options:
ImplicitTypeEverywhere
()));
787
""", new(options:
ImplicitTypeEverywhere
()));
813
""", new(options:
ImplicitTypeEverywhere
()));
839
""", new(options:
ImplicitTypeEverywhere
()));
871
""", new(options:
ImplicitTypeEverywhere
()));
907
""", new(options:
ImplicitTypeEverywhere
()));
935
""", new(options:
ImplicitTypeEverywhere
()));
979
""", new(options:
ImplicitTypeEverywhere
()));
1009
""", new(options:
ImplicitTypeEverywhere
()));
1043
""", new(options:
ImplicitTypeEverywhere
()));
1091
""", new(options:
ImplicitTypeEverywhere
()));
1137
""", new(options:
ImplicitTypeEverywhere
()));
1165
""", new(options:
ImplicitTypeEverywhere
()));
1203
""", new(options:
ImplicitTypeEverywhere
()));
1231
""", new(options:
ImplicitTypeEverywhere
()));
1259
""", new(options:
ImplicitTypeEverywhere
()));
1297
""", new(options:
ImplicitTypeEverywhere
()));
1323
""", new(options:
ImplicitTypeEverywhere
()));
1807
await TestInRegularAndScriptAsync(before, @"class C { static void M() { var s = new int[0]; } }", new(options:
ImplicitTypeEverywhere
()));
1819
await TestInRegularAndScriptAsync(before, after, new(options:
ImplicitTypeEverywhere
()));
1831
await TestInRegularAndScriptAsync(before, after, new(options:
ImplicitTypeEverywhere
()));
1860
await TestInRegularAndScriptAsync(before, after, new(options:
ImplicitTypeEverywhere
()));
1869
await TestInRegularAndScriptAsync(before, @"class C { static void M(C c) { var s = (a: 1, b: c); } }", new(options:
ImplicitTypeEverywhere
()));
1940
new TestParameters(options:
ImplicitTypeEverywhere
()));
1975
new TestParameters(options:
ImplicitTypeEverywhere
()));
2039
""", new(options:
ImplicitTypeEverywhere
()));
2066
new(options:
ImplicitTypeEverywhere
()));
2098
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2136
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2174
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2204
""", new(options:
ImplicitTypeEverywhere
()));
2234
""", new(options:
ImplicitTypeEverywhere
()));
2264
""", new(options:
ImplicitTypeEverywhere
()));
2294
""", new(options:
ImplicitTypeEverywhere
()));
2314
""", new(options:
ImplicitTypeEverywhere
()));
2342
""", new(options:
ImplicitTypeEverywhere
()));
2359
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2374
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2400
""", new(options:
ImplicitTypeEverywhere
()));
2426
""", new(options:
ImplicitTypeEverywhere
()));
2454
""", new(options:
ImplicitTypeEverywhere
()));
2470
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2488
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2504
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2530
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2552
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2579
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2603
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2633
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2652
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2676
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2722
""", new(options:
ImplicitTypeEverywhere
()));
2744
""", parameters: new TestParameters(options:
ImplicitTypeEverywhere
()));
2785
new(options:
ImplicitTypeEverywhere
()));
2814
""", parameters: new TestParameters(options:
ImplicitTypeEverywhere
()));
2840
""", parameters: new TestParameters(options:
ImplicitTypeEverywhere
()));
2856
""", new TestParameters(options:
ImplicitTypeEverywhere
()));
2889
new(options:
ImplicitTypeEverywhere
()));
2922
new(options:
ImplicitTypeEverywhere
()));
2955
new(options:
ImplicitTypeEverywhere
()));
3004
new(options:
ImplicitTypeEverywhere
()));
3053
new(options:
ImplicitTypeEverywhere
()));
3102
new(options:
ImplicitTypeEverywhere
()));
3124
""", new(CSharpParseOptions.Default, options:
ImplicitTypeEverywhere
()));
3150
""", new(options:
ImplicitTypeEverywhere
()));
3165
""", new(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9), options:
ImplicitTypeEverywhere
()));
3180
""", new(options:
ImplicitTypeEverywhere
()));
3197
""", new(options:
ImplicitTypeEverywhere
()));
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests_FixAllTests.cs (3)
125
""", new(options:
ImplicitTypeEverywhere
()));
235
""", new(options:
ImplicitTypeEverywhere
()));
345
""", new(options:
ImplicitTypeEverywhere
()));