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)
1585[InlineData(nameof(PreferDiscard))] 1610[InlineData(nameof(PreferDiscard), "_")] 1640[InlineData(nameof(PreferDiscard))] 1661[InlineData(nameof(PreferDiscard))] 1682[InlineData(nameof(PreferDiscard), "_")] 1716[InlineData(nameof(PreferDiscard))] 1737[InlineData(nameof(PreferDiscard))] 1758[InlineData(nameof(PreferDiscard), "_")] 1793[InlineData(nameof(PreferDiscard))] 1838""", options: PreferDiscard); 1885""", options: PreferDiscard); 1907[InlineData(nameof(PreferDiscard))] 1937[InlineData(nameof(PreferDiscard))] 1967[InlineData(nameof(PreferDiscard))] 2026""", options: PreferDiscard); 2092""", options: PreferDiscard); 2157""", options: PreferDiscard); 2193[InlineData(nameof(PreferDiscard))] 2228[InlineData(nameof(PreferDiscard))] 2250[InlineData(nameof(PreferDiscard))] 2280[InlineData(nameof(PreferDiscard))] 2313[InlineData(nameof(PreferDiscard))] 2365""", options: PreferDiscard); 2420""", options: PreferDiscard); 2455""", options: PreferDiscard); 2477[InlineData(nameof(PreferDiscard), "_")] 2511[InlineData(nameof(PreferDiscard))] 2532[InlineData(nameof(PreferDiscard))] 2553[InlineData(nameof(PreferDiscard), "_")] 2609""", options: PreferDiscard); 2644[InlineData(nameof(PreferDiscard))] 2663[InlineData(nameof(PreferDiscard), "_")] 2723""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 2757""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp9)); 2874""", options: PreferDiscard); 2921""", options: PreferDiscard); 2943[InlineData(nameof(PreferDiscard), "C")] 2997""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 3109""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 3213[InlineData(nameof(PreferDiscard), "_")] 3250[InlineData(nameof(PreferDiscard), "")] 3388[InlineData(nameof(PreferDiscard))] 3413[InlineData(nameof(PreferDiscard))] 3438[InlineData(nameof(PreferDiscard))] 3463[InlineData(nameof(PreferDiscard))] 3500[InlineData(nameof(PreferDiscard))] 3537[InlineData(nameof(PreferDiscard))] 3574[InlineData(nameof(PreferDiscard))] 3611[InlineData(nameof(PreferDiscard))] 3648[InlineData(nameof(PreferDiscard))] 3683[InlineData(nameof(PreferDiscard))] 3718[InlineData(nameof(PreferDiscard))] 3755[InlineData(nameof(PreferDiscard))] 3792[InlineData(nameof(PreferDiscard))] 3816[InlineData(nameof(PreferDiscard))] 3840[InlineData(nameof(PreferDiscard))] 3862[InlineData(nameof(PreferDiscard))] 3884[InlineData(nameof(PreferDiscard))] 3916[InlineData(nameof(PreferDiscard))] 3948[InlineData(nameof(PreferDiscard))] 3975[InlineData(nameof(PreferDiscard))] 4003[InlineData(nameof(PreferDiscard))] 4032[InlineData(nameof(PreferDiscard))] 4062[InlineData(nameof(PreferDiscard))] 4082[InlineData(nameof(PreferDiscard))] 4102[InlineData(nameof(PreferDiscard))] 4127[InlineData(nameof(PreferDiscard))] 4160[InlineData(nameof(PreferDiscard))] 4187[InlineData(nameof(PreferDiscard))] 4214[InlineData(nameof(PreferDiscard))] 4243[InlineData(nameof(PreferDiscard))] 4268[InlineData(nameof(PreferDiscard))] 4293[InlineData(nameof(PreferDiscard))] 4318[InlineData(nameof(PreferDiscard))] 4346[InlineData(nameof(PreferDiscard))] 4374[InlineData(nameof(PreferDiscard))] 4399[InlineData(nameof(PreferDiscard))] 4426[InlineData(nameof(PreferDiscard))] 4453[InlineData(nameof(PreferDiscard))] 4481[InlineData(nameof(PreferDiscard))] 4510[InlineData(nameof(PreferDiscard))] 4539[InlineData(nameof(PreferDiscard))] 4583[InlineData(nameof(PreferDiscard))] 4606[InlineData(nameof(PreferDiscard))] 4631[InlineData(nameof(PreferDiscard))] 4656[InlineData(nameof(PreferDiscard))] 4681[InlineData(nameof(PreferDiscard))] 4709[InlineData(nameof(PreferDiscard))] 4738[InlineData(nameof(PreferDiscard))] 4768[InlineData(nameof(PreferDiscard))] 4799[InlineData(nameof(PreferDiscard))] 4864[InlineData(nameof(PreferDiscard))] 4981[InlineData(nameof(PreferDiscard))] 5006[InlineData(nameof(PreferDiscard))] 5032[InlineData(nameof(PreferDiscard))] 5059[InlineData(nameof(PreferDiscard))] 5086[InlineData(nameof(PreferDiscard))] 5121[InlineData(nameof(PreferDiscard))] 5156[InlineData(nameof(PreferDiscard))] 5193[InlineData(nameof(PreferDiscard))] 5232[InlineData(nameof(PreferDiscard))] 5258[InlineData(nameof(PreferDiscard))] 5283[InlineData(nameof(PreferDiscard))] 5311[InlineData(nameof(PreferDiscard))] 5370""", options: PreferDiscard); 5393[InlineData(nameof(PreferDiscard))] 5427[InlineData(nameof(PreferDiscard), "_")] 5499""", options: PreferDiscard); 5567[InlineData(nameof(PreferDiscard))] 5593[InlineData(nameof(PreferDiscard))] 5618[InlineData(nameof(PreferDiscard))] 5644[InlineData(nameof(PreferDiscard))] 5670[InlineData(nameof(PreferDiscard))] 5699[InlineData(nameof(PreferDiscard))] 5726[InlineData(nameof(PreferDiscard))] 5758[InlineData(nameof(PreferDiscard))] 5787[InlineData(nameof(PreferDiscard))] 5815[InlineData(nameof(PreferDiscard))] 5842[InlineData(nameof(PreferDiscard))] 5914""", options: PreferDiscard); 5957""", options: PreferDiscard); 6345[InlineData(nameof(PreferDiscard))] 6368[InlineData(nameof(PreferDiscard))] 6438""", options: PreferDiscard); 6467[InlineData(nameof(PreferDiscard))] 6514[InlineData(nameof(PreferDiscard), "_")] 6792""", options: PreferDiscard); 6897[InlineData(nameof(PreferDiscard))] 7057""", options: PreferDiscard); 7158""", options: PreferDiscard); 7198""", options: PreferDiscard); 7283[InlineData(nameof(PreferDiscard))] 7325[InlineData(nameof(PreferDiscard))] 7408""", options: PreferDiscard); 7452""", options: PreferDiscard); 7456[InlineData(nameof(PreferDiscard))] 7561""", options: PreferDiscard); 7613""", options: PreferDiscard); 7617[InlineData(nameof(PreferDiscard))] 7634[InlineData(nameof(PreferDiscard))] 7657[InlineData(nameof(PreferDiscard))] 7677[InlineData(nameof(PreferDiscard))] 7698[InlineData(nameof(PreferDiscard))] 7750""", new TestParameters(options: PreferDiscard, retainNonFixableDiagnostics: true), 7764""", PreferDiscard, new CSharpParseOptions(LanguageVersion.CSharp9)); 7768[InlineData("_", nameof(PreferDiscard))] 7770[InlineData("_1", nameof(PreferDiscard))] 7803[InlineData("_", nameof(PreferDiscard))] 7805[InlineData("_3", nameof(PreferDiscard))] 7840""", options: PreferDiscard); 7860""", options: PreferDiscard); 7878""", options: PreferDiscard); 7897""", options: PreferDiscard); 7916""", options: PreferDiscard); 7935""", options: PreferDiscard); 7956""", options: PreferDiscard); 7974""", options: PreferDiscard); 7995""", options: PreferDiscard); 8025""", options: PreferDiscard); 8051""", options: PreferDiscard); 8079""", options: PreferDiscard); 8111""", options: PreferDiscard); 8143""", options: PreferDiscard); 8183""", options: PreferDiscard); 8264""", optionName: nameof(PreferDiscard), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 8288""", optionName: nameof(PreferDiscard), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 8308""", optionName: nameof(PreferDiscard), parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 8459""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 8558[InlineData(nameof(PreferDiscard))] 8581[InlineData(nameof(PreferDiscard))] 8601[InlineData(nameof(PreferDiscard))] 8625[InlineData(nameof(PreferDiscard))] 8649[InlineData(nameof(PreferDiscard))] 8675[InlineData(nameof(PreferDiscard))] 8701[InlineData(nameof(PreferDiscard))] 8736[InlineData(nameof(PreferDiscard))] 8932""", options: PreferDiscard, 8955""", options: PreferDiscard, 9113""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8))); 9151""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8))); 9177""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 9245""", options: PreferDiscard, parseOptions: new CSharpParseOptions(languageVersion)); 9295""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)); 9450""", options: PreferDiscard); 9555await TestInRegularAndScriptAsync(source, expected, options: PreferDiscard).ConfigureAwait(false); 9591""", options: PreferDiscard); 9619""", options: PreferDiscard); 9647""", options: PreferDiscard); 9652[InlineData(nameof(PreferDiscard))]