Base:
property
PreferDiscard
Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.RemoveUnusedParametersAndValues.RemoveUnusedValuesTestsBase.PreferDiscard
189 references to PreferDiscard
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (189)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (189)
1598
[InlineData(nameof(
PreferDiscard
))]
1623
[InlineData(nameof(
PreferDiscard
), "_")]
1653
[InlineData(nameof(
PreferDiscard
))]
1674
[InlineData(nameof(
PreferDiscard
))]
1695
[InlineData(nameof(
PreferDiscard
), "_")]
1729
[InlineData(nameof(
PreferDiscard
))]
1750
[InlineData(nameof(
PreferDiscard
))]
1771
[InlineData(nameof(
PreferDiscard
), "_")]
1806
[InlineData(nameof(
PreferDiscard
))]
1851
""", options:
PreferDiscard
);
1898
""", options:
PreferDiscard
);
1920
[InlineData(nameof(
PreferDiscard
))]
1950
[InlineData(nameof(
PreferDiscard
))]
1980
[InlineData(nameof(
PreferDiscard
))]
2039
""", options:
PreferDiscard
);
2105
""", options:
PreferDiscard
);
2170
""", options:
PreferDiscard
);
2206
[InlineData(nameof(
PreferDiscard
))]
2241
[InlineData(nameof(
PreferDiscard
))]
2263
[InlineData(nameof(
PreferDiscard
))]
2293
[InlineData(nameof(
PreferDiscard
))]
2326
[InlineData(nameof(
PreferDiscard
))]
2378
""", options:
PreferDiscard
);
2433
""", options:
PreferDiscard
);
2468
""", options:
PreferDiscard
);
2490
[InlineData(nameof(
PreferDiscard
), "_")]
2524
[InlineData(nameof(
PreferDiscard
))]
2545
[InlineData(nameof(
PreferDiscard
))]
2566
[InlineData(nameof(
PreferDiscard
), "_")]
2622
""", options:
PreferDiscard
);
2657
[InlineData(nameof(
PreferDiscard
))]
2676
[InlineData(nameof(
PreferDiscard
), "_")]
2736
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
2770
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp9));
2887
""", options:
PreferDiscard
);
2934
""", options:
PreferDiscard
);
2956
[InlineData(nameof(
PreferDiscard
), "C")]
3010
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3122
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3226
[InlineData(nameof(
PreferDiscard
), "_")]
3263
[InlineData(nameof(
PreferDiscard
), "")]
3401
[InlineData(nameof(
PreferDiscard
))]
3426
[InlineData(nameof(
PreferDiscard
))]
3451
[InlineData(nameof(
PreferDiscard
))]
3476
[InlineData(nameof(
PreferDiscard
))]
3513
[InlineData(nameof(
PreferDiscard
))]
3550
[InlineData(nameof(
PreferDiscard
))]
3587
[InlineData(nameof(
PreferDiscard
))]
3624
[InlineData(nameof(
PreferDiscard
))]
3661
[InlineData(nameof(
PreferDiscard
))]
3696
[InlineData(nameof(
PreferDiscard
))]
3731
[InlineData(nameof(
PreferDiscard
))]
3768
[InlineData(nameof(
PreferDiscard
))]
3805
[InlineData(nameof(
PreferDiscard
))]
3829
[InlineData(nameof(
PreferDiscard
))]
3853
[InlineData(nameof(
PreferDiscard
))]
3875
[InlineData(nameof(
PreferDiscard
))]
3897
[InlineData(nameof(
PreferDiscard
))]
3929
[InlineData(nameof(
PreferDiscard
))]
3961
[InlineData(nameof(
PreferDiscard
))]
3988
[InlineData(nameof(
PreferDiscard
))]
4016
[InlineData(nameof(
PreferDiscard
))]
4045
[InlineData(nameof(
PreferDiscard
))]
4075
[InlineData(nameof(
PreferDiscard
))]
4095
[InlineData(nameof(
PreferDiscard
))]
4115
[InlineData(nameof(
PreferDiscard
))]
4140
[InlineData(nameof(
PreferDiscard
))]
4173
[InlineData(nameof(
PreferDiscard
))]
4200
[InlineData(nameof(
PreferDiscard
))]
4227
[InlineData(nameof(
PreferDiscard
))]
4256
[InlineData(nameof(
PreferDiscard
))]
4281
[InlineData(nameof(
PreferDiscard
))]
4306
[InlineData(nameof(
PreferDiscard
))]
4331
[InlineData(nameof(
PreferDiscard
))]
4359
[InlineData(nameof(
PreferDiscard
))]
4387
[InlineData(nameof(
PreferDiscard
))]
4412
[InlineData(nameof(
PreferDiscard
))]
4439
[InlineData(nameof(
PreferDiscard
))]
4466
[InlineData(nameof(
PreferDiscard
))]
4494
[InlineData(nameof(
PreferDiscard
))]
4523
[InlineData(nameof(
PreferDiscard
))]
4552
[InlineData(nameof(
PreferDiscard
))]
4596
[InlineData(nameof(
PreferDiscard
))]
4619
[InlineData(nameof(
PreferDiscard
))]
4644
[InlineData(nameof(
PreferDiscard
))]
4669
[InlineData(nameof(
PreferDiscard
))]
4694
[InlineData(nameof(
PreferDiscard
))]
4722
[InlineData(nameof(
PreferDiscard
))]
4751
[InlineData(nameof(
PreferDiscard
))]
4781
[InlineData(nameof(
PreferDiscard
))]
4812
[InlineData(nameof(
PreferDiscard
))]
4877
[InlineData(nameof(
PreferDiscard
))]
4994
[InlineData(nameof(
PreferDiscard
))]
5019
[InlineData(nameof(
PreferDiscard
))]
5045
[InlineData(nameof(
PreferDiscard
))]
5072
[InlineData(nameof(
PreferDiscard
))]
5099
[InlineData(nameof(
PreferDiscard
))]
5134
[InlineData(nameof(
PreferDiscard
))]
5169
[InlineData(nameof(
PreferDiscard
))]
5206
[InlineData(nameof(
PreferDiscard
))]
5245
[InlineData(nameof(
PreferDiscard
))]
5271
[InlineData(nameof(
PreferDiscard
))]
5296
[InlineData(nameof(
PreferDiscard
))]
5324
[InlineData(nameof(
PreferDiscard
))]
5383
""", options:
PreferDiscard
);
5406
[InlineData(nameof(
PreferDiscard
))]
5440
[InlineData(nameof(
PreferDiscard
), "_")]
5512
""", options:
PreferDiscard
);
5580
[InlineData(nameof(
PreferDiscard
))]
5606
[InlineData(nameof(
PreferDiscard
))]
5631
[InlineData(nameof(
PreferDiscard
))]
5657
[InlineData(nameof(
PreferDiscard
))]
5683
[InlineData(nameof(
PreferDiscard
))]
5712
[InlineData(nameof(
PreferDiscard
))]
5739
[InlineData(nameof(
PreferDiscard
))]
5771
[InlineData(nameof(
PreferDiscard
))]
5800
[InlineData(nameof(
PreferDiscard
))]
5828
[InlineData(nameof(
PreferDiscard
))]
5855
[InlineData(nameof(
PreferDiscard
))]
5927
""", options:
PreferDiscard
);
5970
""", options:
PreferDiscard
);
6358
[InlineData(nameof(
PreferDiscard
))]
6381
[InlineData(nameof(
PreferDiscard
))]
6451
""", options:
PreferDiscard
);
6480
[InlineData(nameof(
PreferDiscard
))]
6527
[InlineData(nameof(
PreferDiscard
), "_")]
6805
""", options:
PreferDiscard
);
6910
[InlineData(nameof(
PreferDiscard
))]
7070
""", options:
PreferDiscard
);
7171
""", options:
PreferDiscard
);
7211
""", options:
PreferDiscard
);
7296
[InlineData(nameof(
PreferDiscard
))]
7338
[InlineData(nameof(
PreferDiscard
))]
7421
""", options:
PreferDiscard
);
7465
""", options:
PreferDiscard
);
7469
[InlineData(nameof(
PreferDiscard
))]
7574
""", options:
PreferDiscard
);
7626
""", options:
PreferDiscard
);
7630
[InlineData(nameof(
PreferDiscard
))]
7647
[InlineData(nameof(
PreferDiscard
))]
7670
[InlineData(nameof(
PreferDiscard
))]
7690
[InlineData(nameof(
PreferDiscard
))]
7711
[InlineData(nameof(
PreferDiscard
))]
7763
""", new TestParameters(options:
PreferDiscard
, retainNonFixableDiagnostics: true),
7777
""",
PreferDiscard
, new CSharpParseOptions(LanguageVersion.CSharp9));
7781
[InlineData("_", nameof(
PreferDiscard
))]
7783
[InlineData("_1", nameof(
PreferDiscard
))]
7816
[InlineData("_", nameof(
PreferDiscard
))]
7818
[InlineData("_3", nameof(
PreferDiscard
))]
7853
""", options:
PreferDiscard
);
7873
""", options:
PreferDiscard
);
7891
""", options:
PreferDiscard
);
7910
""", options:
PreferDiscard
);
7929
""", options:
PreferDiscard
);
7948
""", options:
PreferDiscard
);
7969
""", options:
PreferDiscard
);
7987
""", options:
PreferDiscard
);
8008
""", options:
PreferDiscard
);
8038
""", options:
PreferDiscard
);
8064
""", options:
PreferDiscard
);
8092
""", options:
PreferDiscard
);
8124
""", options:
PreferDiscard
);
8156
""", options:
PreferDiscard
);
8196
""", options:
PreferDiscard
);
8277
""", optionName: nameof(
PreferDiscard
), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8301
""", optionName: nameof(
PreferDiscard
), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8321
""", optionName: nameof(
PreferDiscard
), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8472
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8571
[InlineData(nameof(
PreferDiscard
))]
8594
[InlineData(nameof(
PreferDiscard
))]
8614
[InlineData(nameof(
PreferDiscard
))]
8638
[InlineData(nameof(
PreferDiscard
))]
8662
[InlineData(nameof(
PreferDiscard
))]
8688
[InlineData(nameof(
PreferDiscard
))]
8714
[InlineData(nameof(
PreferDiscard
))]
8749
[InlineData(nameof(
PreferDiscard
))]
8945
""", options:
PreferDiscard
,
8968
""", options:
PreferDiscard
,
9126
""", new TestParameters(options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9164
""", new TestParameters(options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9190
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9258
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(languageVersion));
9308
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9463
""", options:
PreferDiscard
);
9568
await TestInRegularAndScriptAsync(source, expected, options:
PreferDiscard
).ConfigureAwait(false);
9604
""", options:
PreferDiscard
);
9632
""", options:
PreferDiscard
);
9660
""", options:
PreferDiscard
);
9665
[InlineData(nameof(
PreferDiscard
))]