src\Analyzers\CSharp\Tests\NewLines\MultipleBlankLines\MultipleBlankLinesTests.cs (10)
534LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
552LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
578LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
605LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
632LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
770LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
793LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
832LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
875LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
922LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (23)
2728""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
2767[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3002""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3008[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3114""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3120[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3251""", optionName: optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
5466""", optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8229""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8245""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
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));
8470[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
8916""", options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9118""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9124[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9156""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9182""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9228[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9256[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9300""", 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)
43public async Task InlineTypeCheck1(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
59private async Task TestStatement(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
1166""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1205""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1471""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1502""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1557""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1589""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1652""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1694""", 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,
2431LanguageVersion = LanguageVersion.CSharp8,
2500LanguageVersion = LanguageVersion.CSharp8,
2617LanguageVersion = LanguageVersion.CSharp8,
src\Analyzers\CSharp\Tests\NewLines\MultipleBlankLines\MultipleBlankLinesTests.cs (10)
534LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
552LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
578LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
605LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
632LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
770LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
793LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
832LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
875LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
922LanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp8,
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (23)
2728""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
2767[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3002""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3008[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3114""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
3120[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
3251""", optionName: optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
5466""", optionName, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8229""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
8245""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
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));
8470[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
8916""", options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9118""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9124[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9156""", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8)));
9182""", options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
9228[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9256[CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)
9300""", 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)
43public async Task InlineTypeCheck1(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
59private async Task TestStatement(string input, string output, LanguageVersion version = LanguageVersion.CSharp8)
1166""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1205""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1471""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1502""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1557""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1589""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1652""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));
1694""", parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8)));