Base:
property
PreferUnusedLocal
Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.RemoveUnusedParametersAndValues.RemoveUnusedValuesTestsBase.PreferUnusedLocal
163 references to PreferUnusedLocal
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (163)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (163)
1591
[InlineData(nameof(
PreferUnusedLocal
))]
1616
[InlineData(nameof(
PreferUnusedLocal
), "int unused")]
1646
[InlineData(nameof(
PreferUnusedLocal
))]
1667
[InlineData(nameof(
PreferUnusedLocal
))]
1688
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
1722
[InlineData(nameof(
PreferUnusedLocal
))]
1743
[InlineData(nameof(
PreferUnusedLocal
))]
1764
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
1799
[InlineData(nameof(
PreferUnusedLocal
))]
1860
""", new TestParameters(options:
PreferUnusedLocal
));
1908
""", new TestParameters(options:
PreferUnusedLocal
));
1913
[InlineData(nameof(
PreferUnusedLocal
))]
1943
[InlineData(nameof(
PreferUnusedLocal
))]
1973
[InlineData(nameof(
PreferUnusedLocal
))]
2063
""", options:
PreferUnusedLocal
);
2129
""", options:
PreferUnusedLocal
);
2194
""", options:
PreferUnusedLocal
);
2199
[InlineData(nameof(
PreferUnusedLocal
))]
2234
[InlineData(nameof(
PreferUnusedLocal
))]
2256
[InlineData(nameof(
PreferUnusedLocal
))]
2286
[InlineData(nameof(
PreferUnusedLocal
))]
2319
[InlineData(nameof(
PreferUnusedLocal
))]
2405
""", options:
PreferUnusedLocal
);
2478
""", options:
PreferUnusedLocal
);
2483
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
2517
[InlineData(nameof(
PreferUnusedLocal
))]
2538
[InlineData(nameof(
PreferUnusedLocal
))]
2559
[InlineData(nameof(
PreferUnusedLocal
), "unused")]
2645
""", options:
PreferUnusedLocal
);
2650
[InlineData(nameof(
PreferUnusedLocal
))]
2669
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
2783
""", new TestParameters(options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion)));
2896
""", options:
PreferUnusedLocal
);
2944
""", options:
PreferUnusedLocal
);
2949
[InlineData(nameof(
PreferUnusedLocal
), "C unused")]
3019
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion));
3137
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion));
3219
[InlineData(nameof(
PreferUnusedLocal
), "unused")]
3256
[InlineData(nameof(
PreferUnusedLocal
), " unused")]
3394
[InlineData(nameof(
PreferUnusedLocal
))]
3419
[InlineData(nameof(
PreferUnusedLocal
))]
3444
[InlineData(nameof(
PreferUnusedLocal
))]
3469
[InlineData(nameof(
PreferUnusedLocal
))]
3506
[InlineData(nameof(
PreferUnusedLocal
))]
3543
[InlineData(nameof(
PreferUnusedLocal
))]
3580
[InlineData(nameof(
PreferUnusedLocal
))]
3617
[InlineData(nameof(
PreferUnusedLocal
))]
3654
[InlineData(nameof(
PreferUnusedLocal
))]
3689
[InlineData(nameof(
PreferUnusedLocal
))]
3724
[InlineData(nameof(
PreferUnusedLocal
))]
3761
[InlineData(nameof(
PreferUnusedLocal
))]
3798
[InlineData(nameof(
PreferUnusedLocal
))]
3822
[InlineData(nameof(
PreferUnusedLocal
))]
3846
[InlineData(nameof(
PreferUnusedLocal
))]
3868
[InlineData(nameof(
PreferUnusedLocal
))]
3890
[InlineData(nameof(
PreferUnusedLocal
))]
3922
[InlineData(nameof(
PreferUnusedLocal
))]
3954
[InlineData(nameof(
PreferUnusedLocal
))]
3981
[InlineData(nameof(
PreferUnusedLocal
))]
4009
[InlineData(nameof(
PreferUnusedLocal
))]
4038
[InlineData(nameof(
PreferUnusedLocal
))]
4068
[InlineData(nameof(
PreferUnusedLocal
))]
4088
[InlineData(nameof(
PreferUnusedLocal
))]
4108
[InlineData(nameof(
PreferUnusedLocal
))]
4133
[InlineData(nameof(
PreferUnusedLocal
))]
4166
[InlineData(nameof(
PreferUnusedLocal
))]
4193
[InlineData(nameof(
PreferUnusedLocal
))]
4220
[InlineData(nameof(
PreferUnusedLocal
))]
4249
[InlineData(nameof(
PreferUnusedLocal
))]
4274
[InlineData(nameof(
PreferUnusedLocal
))]
4299
[InlineData(nameof(
PreferUnusedLocal
))]
4324
[InlineData(nameof(
PreferUnusedLocal
))]
4352
[InlineData(nameof(
PreferUnusedLocal
))]
4380
[InlineData(nameof(
PreferUnusedLocal
))]
4405
[InlineData(nameof(
PreferUnusedLocal
))]
4432
[InlineData(nameof(
PreferUnusedLocal
))]
4459
[InlineData(nameof(
PreferUnusedLocal
))]
4487
[InlineData(nameof(
PreferUnusedLocal
))]
4516
[InlineData(nameof(
PreferUnusedLocal
))]
4545
[InlineData(nameof(
PreferUnusedLocal
))]
4589
[InlineData(nameof(
PreferUnusedLocal
))]
4612
[InlineData(nameof(
PreferUnusedLocal
))]
4637
[InlineData(nameof(
PreferUnusedLocal
))]
4662
[InlineData(nameof(
PreferUnusedLocal
))]
4687
[InlineData(nameof(
PreferUnusedLocal
))]
4715
[InlineData(nameof(
PreferUnusedLocal
))]
4744
[InlineData(nameof(
PreferUnusedLocal
))]
4774
[InlineData(nameof(
PreferUnusedLocal
))]
4805
[InlineData(nameof(
PreferUnusedLocal
))]
4870
[InlineData(nameof(
PreferUnusedLocal
))]
4987
[InlineData(nameof(
PreferUnusedLocal
))]
5012
[InlineData(nameof(
PreferUnusedLocal
))]
5038
[InlineData(nameof(
PreferUnusedLocal
))]
5065
[InlineData(nameof(
PreferUnusedLocal
))]
5092
[InlineData(nameof(
PreferUnusedLocal
))]
5127
[InlineData(nameof(
PreferUnusedLocal
))]
5162
[InlineData(nameof(
PreferUnusedLocal
))]
5199
[InlineData(nameof(
PreferUnusedLocal
))]
5238
[InlineData(nameof(
PreferUnusedLocal
))]
5264
[InlineData(nameof(
PreferUnusedLocal
))]
5289
[InlineData(nameof(
PreferUnusedLocal
))]
5317
[InlineData(nameof(
PreferUnusedLocal
))]
5394
""", options:
PreferUnusedLocal
);
5399
[InlineData(nameof(
PreferUnusedLocal
))]
5433
[InlineData(nameof(
PreferUnusedLocal
), "unused")]
5526
""", options:
PreferUnusedLocal
);
5568
""", options:
PreferUnusedLocal
);
5573
[InlineData(nameof(
PreferUnusedLocal
))]
5599
[InlineData(nameof(
PreferUnusedLocal
))]
5624
[InlineData(nameof(
PreferUnusedLocal
))]
5650
[InlineData(nameof(
PreferUnusedLocal
))]
5676
[InlineData(nameof(
PreferUnusedLocal
))]
5705
[InlineData(nameof(
PreferUnusedLocal
))]
5732
[InlineData(nameof(
PreferUnusedLocal
))]
5764
[InlineData(nameof(
PreferUnusedLocal
))]
5793
[InlineData(nameof(
PreferUnusedLocal
))]
5821
[InlineData(nameof(
PreferUnusedLocal
))]
5848
[InlineData(nameof(
PreferUnusedLocal
))]
6011
""", options:
PreferUnusedLocal
);
6036
""", new TestParameters(options:
PreferUnusedLocal
));
6083
""", options:
PreferUnusedLocal
);
6107
""", new TestParameters(options:
PreferUnusedLocal
));
6351
[InlineData(nameof(
PreferUnusedLocal
))]
6374
[InlineData(nameof(
PreferUnusedLocal
))]
6468
""", options:
PreferUnusedLocal
);
6473
[InlineData(nameof(
PreferUnusedLocal
))]
6520
[InlineData(nameof(
PreferUnusedLocal
), "int unused")]
6898
""", options:
PreferUnusedLocal
);
6903
[InlineData(nameof(
PreferUnusedLocal
))]
7125
""", options:
PreferUnusedLocal
);
7243
""", options:
PreferUnusedLocal
);
7284
""", options:
PreferUnusedLocal
);
7289
[InlineData(nameof(
PreferUnusedLocal
))]
7331
[InlineData(nameof(
PreferUnusedLocal
))]
7462
[InlineData(nameof(
PreferUnusedLocal
))]
7623
[InlineData(nameof(
PreferUnusedLocal
))]
7640
[InlineData(nameof(
PreferUnusedLocal
))]
7663
[InlineData(nameof(
PreferUnusedLocal
))]
7683
[InlineData(nameof(
PreferUnusedLocal
))]
7704
[InlineData(nameof(
PreferUnusedLocal
))]
7774
[InlineData("_", nameof(
PreferUnusedLocal
))]
7776
[InlineData("_1", nameof(
PreferUnusedLocal
))]
7809
[InlineData("_", nameof(
PreferUnusedLocal
))]
7811
[InlineData("_3", nameof(
PreferUnusedLocal
))]
8351
""", options:
PreferUnusedLocal
);
8394
""", options:
PreferUnusedLocal
);
8428
""", options:
PreferUnusedLocal
);
8487
""",
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion));
8564
[InlineData(nameof(
PreferUnusedLocal
))]
8587
[InlineData(nameof(
PreferUnusedLocal
))]
8607
[InlineData(nameof(
PreferUnusedLocal
))]
8631
[InlineData(nameof(
PreferUnusedLocal
))]
8655
[InlineData(nameof(
PreferUnusedLocal
))]
8681
[InlineData(nameof(
PreferUnusedLocal
))]
8707
[InlineData(nameof(
PreferUnusedLocal
))]
8742
[InlineData(nameof(
PreferUnusedLocal
))]
8804
""", options:
PreferUnusedLocal
);
8840
""", options:
PreferUnusedLocal
);
8878
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3));
8916
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9139
""", new TestParameters(options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion)));
9268
""", new TestParameters(options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion)));
9658
[InlineData(nameof(
PreferUnusedLocal
))]