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)
1599
[InlineData(nameof(
PreferUnusedLocal
))]
1624
[InlineData(nameof(
PreferUnusedLocal
), "int unused")]
1654
[InlineData(nameof(
PreferUnusedLocal
))]
1675
[InlineData(nameof(
PreferUnusedLocal
))]
1696
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
1730
[InlineData(nameof(
PreferUnusedLocal
))]
1751
[InlineData(nameof(
PreferUnusedLocal
))]
1772
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
1807
[InlineData(nameof(
PreferUnusedLocal
))]
1868
""", new TestParameters(options:
PreferUnusedLocal
));
1916
""", new TestParameters(options:
PreferUnusedLocal
));
1921
[InlineData(nameof(
PreferUnusedLocal
))]
1951
[InlineData(nameof(
PreferUnusedLocal
))]
1981
[InlineData(nameof(
PreferUnusedLocal
))]
2071
""", options:
PreferUnusedLocal
);
2137
""", options:
PreferUnusedLocal
);
2202
""", options:
PreferUnusedLocal
);
2207
[InlineData(nameof(
PreferUnusedLocal
))]
2242
[InlineData(nameof(
PreferUnusedLocal
))]
2264
[InlineData(nameof(
PreferUnusedLocal
))]
2294
[InlineData(nameof(
PreferUnusedLocal
))]
2327
[InlineData(nameof(
PreferUnusedLocal
))]
2413
""", options:
PreferUnusedLocal
);
2486
""", options:
PreferUnusedLocal
);
2491
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
2525
[InlineData(nameof(
PreferUnusedLocal
))]
2546
[InlineData(nameof(
PreferUnusedLocal
))]
2567
[InlineData(nameof(
PreferUnusedLocal
), "unused")]
2653
""", options:
PreferUnusedLocal
);
2658
[InlineData(nameof(
PreferUnusedLocal
))]
2677
[InlineData(nameof(
PreferUnusedLocal
), "var unused")]
2791
""", new TestParameters(options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion)));
2904
""", options:
PreferUnusedLocal
);
2952
""", options:
PreferUnusedLocal
);
2957
[InlineData(nameof(
PreferUnusedLocal
), "C unused")]
3027
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion));
3145
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion));
3227
[InlineData(nameof(
PreferUnusedLocal
), "unused")]
3264
[InlineData(nameof(
PreferUnusedLocal
), " unused")]
3402
[InlineData(nameof(
PreferUnusedLocal
))]
3427
[InlineData(nameof(
PreferUnusedLocal
))]
3452
[InlineData(nameof(
PreferUnusedLocal
))]
3477
[InlineData(nameof(
PreferUnusedLocal
))]
3514
[InlineData(nameof(
PreferUnusedLocal
))]
3551
[InlineData(nameof(
PreferUnusedLocal
))]
3588
[InlineData(nameof(
PreferUnusedLocal
))]
3625
[InlineData(nameof(
PreferUnusedLocal
))]
3662
[InlineData(nameof(
PreferUnusedLocal
))]
3697
[InlineData(nameof(
PreferUnusedLocal
))]
3732
[InlineData(nameof(
PreferUnusedLocal
))]
3769
[InlineData(nameof(
PreferUnusedLocal
))]
3806
[InlineData(nameof(
PreferUnusedLocal
))]
3830
[InlineData(nameof(
PreferUnusedLocal
))]
3854
[InlineData(nameof(
PreferUnusedLocal
))]
3876
[InlineData(nameof(
PreferUnusedLocal
))]
3898
[InlineData(nameof(
PreferUnusedLocal
))]
3930
[InlineData(nameof(
PreferUnusedLocal
))]
3962
[InlineData(nameof(
PreferUnusedLocal
))]
3989
[InlineData(nameof(
PreferUnusedLocal
))]
4017
[InlineData(nameof(
PreferUnusedLocal
))]
4046
[InlineData(nameof(
PreferUnusedLocal
))]
4076
[InlineData(nameof(
PreferUnusedLocal
))]
4096
[InlineData(nameof(
PreferUnusedLocal
))]
4116
[InlineData(nameof(
PreferUnusedLocal
))]
4141
[InlineData(nameof(
PreferUnusedLocal
))]
4174
[InlineData(nameof(
PreferUnusedLocal
))]
4201
[InlineData(nameof(
PreferUnusedLocal
))]
4228
[InlineData(nameof(
PreferUnusedLocal
))]
4257
[InlineData(nameof(
PreferUnusedLocal
))]
4282
[InlineData(nameof(
PreferUnusedLocal
))]
4307
[InlineData(nameof(
PreferUnusedLocal
))]
4332
[InlineData(nameof(
PreferUnusedLocal
))]
4360
[InlineData(nameof(
PreferUnusedLocal
))]
4388
[InlineData(nameof(
PreferUnusedLocal
))]
4413
[InlineData(nameof(
PreferUnusedLocal
))]
4440
[InlineData(nameof(
PreferUnusedLocal
))]
4467
[InlineData(nameof(
PreferUnusedLocal
))]
4495
[InlineData(nameof(
PreferUnusedLocal
))]
4524
[InlineData(nameof(
PreferUnusedLocal
))]
4553
[InlineData(nameof(
PreferUnusedLocal
))]
4597
[InlineData(nameof(
PreferUnusedLocal
))]
4620
[InlineData(nameof(
PreferUnusedLocal
))]
4645
[InlineData(nameof(
PreferUnusedLocal
))]
4670
[InlineData(nameof(
PreferUnusedLocal
))]
4695
[InlineData(nameof(
PreferUnusedLocal
))]
4723
[InlineData(nameof(
PreferUnusedLocal
))]
4752
[InlineData(nameof(
PreferUnusedLocal
))]
4782
[InlineData(nameof(
PreferUnusedLocal
))]
4813
[InlineData(nameof(
PreferUnusedLocal
))]
4878
[InlineData(nameof(
PreferUnusedLocal
))]
4995
[InlineData(nameof(
PreferUnusedLocal
))]
5020
[InlineData(nameof(
PreferUnusedLocal
))]
5046
[InlineData(nameof(
PreferUnusedLocal
))]
5073
[InlineData(nameof(
PreferUnusedLocal
))]
5100
[InlineData(nameof(
PreferUnusedLocal
))]
5135
[InlineData(nameof(
PreferUnusedLocal
))]
5170
[InlineData(nameof(
PreferUnusedLocal
))]
5207
[InlineData(nameof(
PreferUnusedLocal
))]
5246
[InlineData(nameof(
PreferUnusedLocal
))]
5272
[InlineData(nameof(
PreferUnusedLocal
))]
5297
[InlineData(nameof(
PreferUnusedLocal
))]
5325
[InlineData(nameof(
PreferUnusedLocal
))]
5402
""", options:
PreferUnusedLocal
);
5407
[InlineData(nameof(
PreferUnusedLocal
))]
5441
[InlineData(nameof(
PreferUnusedLocal
), "unused")]
5534
""", options:
PreferUnusedLocal
);
5576
""", options:
PreferUnusedLocal
);
5581
[InlineData(nameof(
PreferUnusedLocal
))]
5607
[InlineData(nameof(
PreferUnusedLocal
))]
5632
[InlineData(nameof(
PreferUnusedLocal
))]
5658
[InlineData(nameof(
PreferUnusedLocal
))]
5684
[InlineData(nameof(
PreferUnusedLocal
))]
5713
[InlineData(nameof(
PreferUnusedLocal
))]
5740
[InlineData(nameof(
PreferUnusedLocal
))]
5772
[InlineData(nameof(
PreferUnusedLocal
))]
5801
[InlineData(nameof(
PreferUnusedLocal
))]
5829
[InlineData(nameof(
PreferUnusedLocal
))]
5856
[InlineData(nameof(
PreferUnusedLocal
))]
6019
""", options:
PreferUnusedLocal
);
6044
""", new TestParameters(options:
PreferUnusedLocal
));
6091
""", options:
PreferUnusedLocal
);
6115
""", new TestParameters(options:
PreferUnusedLocal
));
6359
[InlineData(nameof(
PreferUnusedLocal
))]
6382
[InlineData(nameof(
PreferUnusedLocal
))]
6476
""", options:
PreferUnusedLocal
);
6481
[InlineData(nameof(
PreferUnusedLocal
))]
6528
[InlineData(nameof(
PreferUnusedLocal
), "int unused")]
6906
""", options:
PreferUnusedLocal
);
6911
[InlineData(nameof(
PreferUnusedLocal
))]
7133
""", options:
PreferUnusedLocal
);
7251
""", options:
PreferUnusedLocal
);
7292
""", options:
PreferUnusedLocal
);
7297
[InlineData(nameof(
PreferUnusedLocal
))]
7339
[InlineData(nameof(
PreferUnusedLocal
))]
7470
[InlineData(nameof(
PreferUnusedLocal
))]
7631
[InlineData(nameof(
PreferUnusedLocal
))]
7648
[InlineData(nameof(
PreferUnusedLocal
))]
7671
[InlineData(nameof(
PreferUnusedLocal
))]
7691
[InlineData(nameof(
PreferUnusedLocal
))]
7712
[InlineData(nameof(
PreferUnusedLocal
))]
7782
[InlineData("_", nameof(
PreferUnusedLocal
))]
7784
[InlineData("_1", nameof(
PreferUnusedLocal
))]
7817
[InlineData("_", nameof(
PreferUnusedLocal
))]
7819
[InlineData("_3", nameof(
PreferUnusedLocal
))]
8359
""", options:
PreferUnusedLocal
);
8402
""", options:
PreferUnusedLocal
);
8436
""", options:
PreferUnusedLocal
);
8495
""",
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion));
8572
[InlineData(nameof(
PreferUnusedLocal
))]
8595
[InlineData(nameof(
PreferUnusedLocal
))]
8615
[InlineData(nameof(
PreferUnusedLocal
))]
8639
[InlineData(nameof(
PreferUnusedLocal
))]
8663
[InlineData(nameof(
PreferUnusedLocal
))]
8689
[InlineData(nameof(
PreferUnusedLocal
))]
8715
[InlineData(nameof(
PreferUnusedLocal
))]
8750
[InlineData(nameof(
PreferUnusedLocal
))]
8812
""", options:
PreferUnusedLocal
);
8848
""", options:
PreferUnusedLocal
);
8886
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3));
8924
""", options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9147
""", new TestParameters(options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion)));
9276
""", new TestParameters(options:
PreferUnusedLocal
, parseOptions: new CSharpParseOptions(languageVersion)));
9666
[InlineData(nameof(
PreferUnusedLocal
))]