Base:
property
PreferDiscard
Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.RemoveUnusedParametersAndValues.RemoveUnusedValuesTestsBase.PreferDiscard
189 references to PreferDiscard
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (189)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (189)
1590
[InlineData(nameof(
PreferDiscard
))]
1615
[InlineData(nameof(
PreferDiscard
), "_")]
1645
[InlineData(nameof(
PreferDiscard
))]
1666
[InlineData(nameof(
PreferDiscard
))]
1687
[InlineData(nameof(
PreferDiscard
), "_")]
1721
[InlineData(nameof(
PreferDiscard
))]
1742
[InlineData(nameof(
PreferDiscard
))]
1763
[InlineData(nameof(
PreferDiscard
), "_")]
1798
[InlineData(nameof(
PreferDiscard
))]
1843
""", options:
PreferDiscard
);
1890
""", options:
PreferDiscard
);
1912
[InlineData(nameof(
PreferDiscard
))]
1942
[InlineData(nameof(
PreferDiscard
))]
1972
[InlineData(nameof(
PreferDiscard
))]
2031
""", options:
PreferDiscard
);
2097
""", options:
PreferDiscard
);
2162
""", options:
PreferDiscard
);
2198
[InlineData(nameof(
PreferDiscard
))]
2233
[InlineData(nameof(
PreferDiscard
))]
2255
[InlineData(nameof(
PreferDiscard
))]
2285
[InlineData(nameof(
PreferDiscard
))]
2318
[InlineData(nameof(
PreferDiscard
))]
2370
""", options:
PreferDiscard
);
2425
""", options:
PreferDiscard
);
2460
""", options:
PreferDiscard
);
2482
[InlineData(nameof(
PreferDiscard
), "_")]
2516
[InlineData(nameof(
PreferDiscard
))]
2537
[InlineData(nameof(
PreferDiscard
))]
2558
[InlineData(nameof(
PreferDiscard
), "_")]
2614
""", options:
PreferDiscard
);
2649
[InlineData(nameof(
PreferDiscard
))]
2668
[InlineData(nameof(
PreferDiscard
), "_")]
2728
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
2762
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp9));
2879
""", options:
PreferDiscard
);
2926
""", options:
PreferDiscard
);
2948
[InlineData(nameof(
PreferDiscard
), "C")]
3002
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3114
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3218
[InlineData(nameof(
PreferDiscard
), "_")]
3255
[InlineData(nameof(
PreferDiscard
), "")]
3393
[InlineData(nameof(
PreferDiscard
))]
3418
[InlineData(nameof(
PreferDiscard
))]
3443
[InlineData(nameof(
PreferDiscard
))]
3468
[InlineData(nameof(
PreferDiscard
))]
3505
[InlineData(nameof(
PreferDiscard
))]
3542
[InlineData(nameof(
PreferDiscard
))]
3579
[InlineData(nameof(
PreferDiscard
))]
3616
[InlineData(nameof(
PreferDiscard
))]
3653
[InlineData(nameof(
PreferDiscard
))]
3688
[InlineData(nameof(
PreferDiscard
))]
3723
[InlineData(nameof(
PreferDiscard
))]
3760
[InlineData(nameof(
PreferDiscard
))]
3797
[InlineData(nameof(
PreferDiscard
))]
3821
[InlineData(nameof(
PreferDiscard
))]
3845
[InlineData(nameof(
PreferDiscard
))]
3867
[InlineData(nameof(
PreferDiscard
))]
3889
[InlineData(nameof(
PreferDiscard
))]
3921
[InlineData(nameof(
PreferDiscard
))]
3953
[InlineData(nameof(
PreferDiscard
))]
3980
[InlineData(nameof(
PreferDiscard
))]
4008
[InlineData(nameof(
PreferDiscard
))]
4037
[InlineData(nameof(
PreferDiscard
))]
4067
[InlineData(nameof(
PreferDiscard
))]
4087
[InlineData(nameof(
PreferDiscard
))]
4107
[InlineData(nameof(
PreferDiscard
))]
4132
[InlineData(nameof(
PreferDiscard
))]
4165
[InlineData(nameof(
PreferDiscard
))]
4192
[InlineData(nameof(
PreferDiscard
))]
4219
[InlineData(nameof(
PreferDiscard
))]
4248
[InlineData(nameof(
PreferDiscard
))]
4273
[InlineData(nameof(
PreferDiscard
))]
4298
[InlineData(nameof(
PreferDiscard
))]
4323
[InlineData(nameof(
PreferDiscard
))]
4351
[InlineData(nameof(
PreferDiscard
))]
4379
[InlineData(nameof(
PreferDiscard
))]
4404
[InlineData(nameof(
PreferDiscard
))]
4431
[InlineData(nameof(
PreferDiscard
))]
4458
[InlineData(nameof(
PreferDiscard
))]
4486
[InlineData(nameof(
PreferDiscard
))]
4515
[InlineData(nameof(
PreferDiscard
))]
4544
[InlineData(nameof(
PreferDiscard
))]
4588
[InlineData(nameof(
PreferDiscard
))]
4611
[InlineData(nameof(
PreferDiscard
))]
4636
[InlineData(nameof(
PreferDiscard
))]
4661
[InlineData(nameof(
PreferDiscard
))]
4686
[InlineData(nameof(
PreferDiscard
))]
4714
[InlineData(nameof(
PreferDiscard
))]
4743
[InlineData(nameof(
PreferDiscard
))]
4773
[InlineData(nameof(
PreferDiscard
))]
4804
[InlineData(nameof(
PreferDiscard
))]
4869
[InlineData(nameof(
PreferDiscard
))]
4986
[InlineData(nameof(
PreferDiscard
))]
5011
[InlineData(nameof(
PreferDiscard
))]
5037
[InlineData(nameof(
PreferDiscard
))]
5064
[InlineData(nameof(
PreferDiscard
))]
5091
[InlineData(nameof(
PreferDiscard
))]
5126
[InlineData(nameof(
PreferDiscard
))]
5161
[InlineData(nameof(
PreferDiscard
))]
5198
[InlineData(nameof(
PreferDiscard
))]
5237
[InlineData(nameof(
PreferDiscard
))]
5263
[InlineData(nameof(
PreferDiscard
))]
5288
[InlineData(nameof(
PreferDiscard
))]
5316
[InlineData(nameof(
PreferDiscard
))]
5375
""", options:
PreferDiscard
);
5398
[InlineData(nameof(
PreferDiscard
))]
5432
[InlineData(nameof(
PreferDiscard
), "_")]
5504
""", options:
PreferDiscard
);
5572
[InlineData(nameof(
PreferDiscard
))]
5598
[InlineData(nameof(
PreferDiscard
))]
5623
[InlineData(nameof(
PreferDiscard
))]
5649
[InlineData(nameof(
PreferDiscard
))]
5675
[InlineData(nameof(
PreferDiscard
))]
5704
[InlineData(nameof(
PreferDiscard
))]
5731
[InlineData(nameof(
PreferDiscard
))]
5763
[InlineData(nameof(
PreferDiscard
))]
5792
[InlineData(nameof(
PreferDiscard
))]
5820
[InlineData(nameof(
PreferDiscard
))]
5847
[InlineData(nameof(
PreferDiscard
))]
5919
""", options:
PreferDiscard
);
5962
""", options:
PreferDiscard
);
6350
[InlineData(nameof(
PreferDiscard
))]
6373
[InlineData(nameof(
PreferDiscard
))]
6443
""", options:
PreferDiscard
);
6472
[InlineData(nameof(
PreferDiscard
))]
6519
[InlineData(nameof(
PreferDiscard
), "_")]
6797
""", options:
PreferDiscard
);
6902
[InlineData(nameof(
PreferDiscard
))]
7062
""", options:
PreferDiscard
);
7163
""", options:
PreferDiscard
);
7203
""", options:
PreferDiscard
);
7288
[InlineData(nameof(
PreferDiscard
))]
7330
[InlineData(nameof(
PreferDiscard
))]
7413
""", options:
PreferDiscard
);
7457
""", options:
PreferDiscard
);
7461
[InlineData(nameof(
PreferDiscard
))]
7566
""", options:
PreferDiscard
);
7618
""", options:
PreferDiscard
);
7622
[InlineData(nameof(
PreferDiscard
))]
7639
[InlineData(nameof(
PreferDiscard
))]
7662
[InlineData(nameof(
PreferDiscard
))]
7682
[InlineData(nameof(
PreferDiscard
))]
7703
[InlineData(nameof(
PreferDiscard
))]
7755
""", new TestParameters(options:
PreferDiscard
, retainNonFixableDiagnostics: true),
7769
""",
PreferDiscard
, new CSharpParseOptions(LanguageVersion.CSharp9));
7773
[InlineData("_", nameof(
PreferDiscard
))]
7775
[InlineData("_1", nameof(
PreferDiscard
))]
7808
[InlineData("_", nameof(
PreferDiscard
))]
7810
[InlineData("_3", nameof(
PreferDiscard
))]
7845
""", options:
PreferDiscard
);
7865
""", options:
PreferDiscard
);
7883
""", options:
PreferDiscard
);
7902
""", options:
PreferDiscard
);
7921
""", options:
PreferDiscard
);
7940
""", options:
PreferDiscard
);
7961
""", options:
PreferDiscard
);
7979
""", options:
PreferDiscard
);
8000
""", options:
PreferDiscard
);
8030
""", options:
PreferDiscard
);
8056
""", options:
PreferDiscard
);
8084
""", options:
PreferDiscard
);
8116
""", options:
PreferDiscard
);
8148
""", options:
PreferDiscard
);
8188
""", options:
PreferDiscard
);
8269
""", optionName: nameof(
PreferDiscard
), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8293
""", optionName: nameof(
PreferDiscard
), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8313
""", optionName: nameof(
PreferDiscard
), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8464
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8563
[InlineData(nameof(
PreferDiscard
))]
8586
[InlineData(nameof(
PreferDiscard
))]
8606
[InlineData(nameof(
PreferDiscard
))]
8630
[InlineData(nameof(
PreferDiscard
))]
8654
[InlineData(nameof(
PreferDiscard
))]
8680
[InlineData(nameof(
PreferDiscard
))]
8706
[InlineData(nameof(
PreferDiscard
))]
8741
[InlineData(nameof(
PreferDiscard
))]
8937
""", options:
PreferDiscard
,
8960
""", options:
PreferDiscard
,
9118
""", new TestParameters(options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9156
""", new TestParameters(options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9182
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9250
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(languageVersion));
9300
""", options:
PreferDiscard
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9455
""", options:
PreferDiscard
);
9560
await TestInRegularAndScriptAsync(source, expected, options:
PreferDiscard
).ConfigureAwait(false);
9596
""", options:
PreferDiscard
);
9624
""", options:
PreferDiscard
);
9652
""", options:
PreferDiscard
);
9657
[InlineData(nameof(
PreferDiscard
))]