src\Analyzers\CSharp\Tests\NewLines\MultipleBlankLines\MultipleBlankLinesTests.cs (10)
545LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
564LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
590LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
617LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
644LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
785LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
809LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
848LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
891LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
938LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (23)
2736""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
2775[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3010""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3016[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3122""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3128[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3259""", optionName: optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
5474""", optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8237""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8253""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
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));
8478[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
8924""", options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9126""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9132[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9164""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9190""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9236[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9264[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9308""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (19)
77LanguageVersion.CSharp8,
91LanguageVersion.CSharp8,
351#error version:[|{{LanguageVersion.CSharp8.ToDisplayString()}}|]
371expected: LanguageVersion.CSharp8,
428LanguageVersion.CSharp8,
459LanguageVersion.CSharp8,
703new CSharpParseOptions(LanguageVersion.CSharp8));
848expected: LanguageVersion.CSharp8,
890LanguageVersion.CSharp8,
904LanguageVersion.CSharp8,
918LanguageVersion.CSharp8,
931LanguageVersion.CSharp8,
964LanguageVersion.CSharp8,
993LanguageVersion.CSharp8,
1027LanguageVersion.CSharp8,
1065new CSharpParseOptions(LanguageVersion.CSharp8));
1170new CSharpParseOptions(LanguageVersion.CSharp8));
1215new CSharpParseOptions(LanguageVersion.CSharp8));
1233new CSharpParseOptions(LanguageVersion.CSharp8));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (10)
47public async Task InlineTypeCheck1(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
63private async Task TestStatement(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
1170""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1209""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1475""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1506""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1561""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1593""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1656""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1698""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
ConvertIfToSwitch\ConvertIfToSwitchTests.cs (12)
315LanguageVersion = LanguageVersion.CSharp8,
498[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
513LanguageVersion.CSharp8 =>
627LanguageVersion = LanguageVersion.CSharp8,
668LanguageVersion = LanguageVersion.CSharp8,
1547LanguageVersion = LanguageVersion.CSharp8,
1639LanguageVersion = LanguageVersion.CSharp8,
1731LanguageVersion = LanguageVersion.CSharp8,
1823LanguageVersion = LanguageVersion.CSharp8,
2432LanguageVersion = LanguageVersion.CSharp8,
2502LanguageVersion = LanguageVersion.CSharp8,
2620LanguageVersion = LanguageVersion.CSharp8,
src\Analyzers\CSharp\Tests\NewLines\MultipleBlankLines\MultipleBlankLinesTests.cs (10)
545LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
564LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
590LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
617LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
644LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
785LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
809LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
848LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
891LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
938LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (23)
2736""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
2775[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3010""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3016[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3122""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3128[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3259""", optionName: optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
5474""", optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8237""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8253""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
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));
8478[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
8924""", options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9126""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9132[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9164""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9190""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9236[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9264[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9308""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (19)
77LanguageVersion.CSharp8,
91LanguageVersion.CSharp8,
351#error version:[|{{LanguageVersion.CSharp8.ToDisplayString()}}|]
371expected: LanguageVersion.CSharp8,
428LanguageVersion.CSharp8,
459LanguageVersion.CSharp8,
703new CSharpParseOptions(LanguageVersion.CSharp8));
848expected: LanguageVersion.CSharp8,
890LanguageVersion.CSharp8,
904LanguageVersion.CSharp8,
918LanguageVersion.CSharp8,
931LanguageVersion.CSharp8,
964LanguageVersion.CSharp8,
993LanguageVersion.CSharp8,
1027LanguageVersion.CSharp8,
1065new CSharpParseOptions(LanguageVersion.CSharp8));
1170new CSharpParseOptions(LanguageVersion.CSharp8));
1215new CSharpParseOptions(LanguageVersion.CSharp8));
1233new CSharpParseOptions(LanguageVersion.CSharp8));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (10)
47public async Task InlineTypeCheck1(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
63private async Task TestStatement(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
1170""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1209""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1475""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1506""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1561""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1593""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1656""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1698""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));