831 references to TestParameters
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (685)
AddBracesTests.cs (16)
49new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 75new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 97new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 119new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 141new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 163new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 186new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 216new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 253new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 276new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 299new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 321new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1457new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1481new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1507new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, (PreferBracesPreference)bracesPreference, NotificationOption2.Silent))); 1964await TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferBraces, bracesPreference, NotificationOption2.Silent)));
AddExplicitCastTests.cs (8)
2589using (var workspace = CreateWorkspaceFromOptions(initialMarkup, new TestParameters())) 2591var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters()); 2657using (var workspace = CreateWorkspaceFromOptions(initialMarkup, new TestParameters())) 2659var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters()); 2814using (var workspace = CreateWorkspaceFromOptions(initialMarkup, new TestParameters())) 2816var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters()); 2893using (var workspace = CreateWorkspaceFromOptions(initialMarkup, new TestParameters())) 2895var (actions, actionToInvoke) = await GetCodeActionsAsync(workspace, new TestParameters());
AddRequiredExpressionParenthesesTests.cs (2)
32=> TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: options)); 35=> TestInRegularAndScript1Async(initialMarkup, expected, parameters: new TestParameters(options: options));
AddRequiredPatternParenthesesTests.cs (2)
32=> TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: options)); 35=> TestInRegularAndScript1Async(initialMarkup, expected, parameters: new TestParameters(options: options));
AddUsing\AbstractAddUsingTests.cs (1)
44parameters: new TestParameters(options: options, testHost: testHost, priority: priority));
AddUsing\AddUsingNuGetTests.cs (4)
201}", new TestParameters(fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object))); 230parameters: new TestParameters(fixProviderData: data)); 238parameters: new TestParameters(index: 1, fixProviderData: data)); 246parameters: new TestParameters(index: 2, fixProviderData: data));
AddUsing\AddUsingTests.cs (2)
6290await TestMissingAsync(InitialWorkspace, new TestParameters(testHost: testHost)); 6367await TestMissingAsync(initialWorkspace, new TestParameters(
CodeActions\ApplyChangesOperationTests.cs (1)
238var parameters = new TestParameters(fixProviderData: codeActionTransform);
CodeActions\EncapsulateField\EncapsulateFieldTests.cs (6)
808await TestActionCountAsync(text, 2, new TestParameters(testHost: host)); 1099await TestActionCountAsync(text, count: 2, new TestParameters(testHost: host)); 1113await TestActionCountAsync(text, count: 2, new TestParameters(testHost: host)); 1161@"var [|x|] = 1;", new TestParameters(testHost: host)); 1169""", new TestParameters(testHost: host)); 1177""", new TestParameters(testHost: host));
CodeActions\ExtractMethod\ExtractLocalFunctionTests.cs (31)
94""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 125""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.FalseWithSilentEnforcement))); 156""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CSharpCodeStyleOptions.PreferStaticLocalFunction.DefaultValue))); 184""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement))); 212""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 246""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 279""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 312""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 345""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 1642""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.VarForBuiltInTypes, CodeStyleOption2.TrueWithSuggestionEnforcement))); 1693""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement))); 3580""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3))); 3611""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7))); 3642""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp8))); 3673""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest))); 3725""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 3777""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 3826""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 3875""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 3934""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 3993""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 4052""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 4111""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement))); 4127await TestExactActionSetOfferedAsync(code, new[] { FeaturesResources.Extract_method }, new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6))); 4143await TestExactActionSetOfferedAsync(code, new[] { FeaturesResources.Extract_method }, new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5))); 4627new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.FalseWithSilentEnforcement))); 4853""", new TestParameters(index: CodeActionIndex)); 4871""", new TestParameters(index: CodeActionIndex)); 4893""", new TestParameters(index: CodeActionIndex)); 4910""", new TestParameters(index: CodeActionIndex)); 4927""", new TestParameters(index: CodeActionIndex));
CodeActions\ExtractMethod\ExtractMethodTests.cs (16)
154new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement))); 196new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement))); 225new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement))); 254new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 289new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 323new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 357new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 382new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 407new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 518new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 552new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement))); 1875""", new TestParameters(options: Option(CSharpCodeStyleOptions.VarForBuiltInTypes, CodeStyleOption2.TrueWithSuggestionEnforcement))); 1926""", new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement))); 3774""", new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.FalseWithSuggestionEnforcement))); 5098""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9))); 5127""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9)));
CodeActions\InlineTemporary\InlineTemporaryTests.cs (2)
4321new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(version))); 5086await TestMissingInRegularAndScriptAsync(code, new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp8)));
CodeActions\IntroduceVariable\IntroduceVariableTests.cs (7)
1889""", parameters: new TestParameters(Options.Regular)); 1937""", new TestParameters(Options.Regular)); 1951""", new TestParameters(Options.Regular)); 1968""", new TestParameters(Options.Regular)); 1985""", new TestParameters(Options.Regular)); 2006""", new TestParameters(Options.Regular)); 5699await TestActionCountAsync(code, count: 2, parameters: new TestParameters(TestOptions.Regular));
CodeActions\Preview\PreviewExceptionTests.cs (3)
31using var workspace = CreateWorkspaceFromOptions("class D {}", new TestParameters()); 44using var workspace = CreateWorkspaceFromOptions("class D {}", new TestParameters()); 57using var workspace = CreateWorkspaceFromOptions("class D {}", new TestParameters());
CodeActions\Preview\PreviewTests.cs (1)
113var parameters = new TestParameters();
CodeActions\ReplaceMethodWithProperty\ReplaceMethodWithPropertyTests.cs (1)
1735count: 1, new TestParameters(options: AllCodeStyleOff));
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (2)
61var testOptions = new TestParameters(); 139var testOptions = new TestParameters();
CodeRefactorings\UseExplicitOrImplicitType\UseExplicitTypeRefactoringTests.cs (14)
1084await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithSilent())); 1085await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithInfo())); 1086await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithWarning())); 1087await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithError())); 1096await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithNone())); 1097await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithNone())); 1098await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithSilent())); 1099await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithSilent())); 1100await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithInfo())); 1101await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithInfo())); 1102await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithWarning())); 1103await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithWarning())); 1104await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithError())); 1105await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithError()));
CodeRefactorings\UseExplicitOrImplicitType\UseImplicitTypeRefactoringTests.cs (14)
613await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithSilent())); 614await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithInfo())); 615await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithWarning())); 616await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithError())); 625await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithNone())); 626await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithNone())); 627await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithSilent())); 628await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithSilent())); 629await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithInfo())); 630await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithInfo())); 631await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithWarning())); 632await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithWarning())); 633await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferImplicitTypeWithError())); 634await TestMissingInRegularAndScriptAsync(initialMarkup, parameters: new TestParameters(options: this.PreferExplicitTypeWithError()));
ConvertForToForEach\ConvertForToForEachTests.cs (2)
1730""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_3))); 1768""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp8)));
ConvertNamespace\ConvertNamespaceRefactoringFixAllTests.cs (6)
90", new TestParameters(options: PreferBlockScopedNamespace)); 154", new TestParameters(options: PreferBlockScopedNamespace)); 166}}", new TestParameters(options: PreferBlockScopedNamespace)); 229", new TestParameters(options: PreferFileScopedNamespace)); 293", new TestParameters(options: PreferFileScopedNamespace)); 304", new TestParameters(options: PreferFileScopedNamespace));
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringTests.cs (2)
165""", new(new CSharpParseOptions(LanguageVersion.CSharp9))); 218""", new(new CSharpParseOptions(LanguageVersion.CSharp9)));
CSharpAsAndNullCheckTests.cs (10)
80}}", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(version))); 98""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 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)));
CSharpDeclareAsNullableCodeFixTests.cs (1)
28private static readonly TestParameters s_nullableFeature = new TestParameters(parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8));
CSharpInlineDeclarationTests.cs (7)
221""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 250""", new TestParameters(options: new UseImplicitTypeTests().ImplicitTypeEverywhere())); 279""", new TestParameters(options: new UseImplicitTypeTests().ImplicitTypeButKeepIntrinsics())); 651""", new TestParameters(options: new UseImplicitTypeTests().ImplicitTypeEverywhere())); 696""", new TestParameters(options: new UseImplicitTypeTests().ImplicitTypeEverywhere())); 733""", new TestParameters(options: new UseImplicitTypeTests().ImplicitTypeEverywhere())); 2442""", new TestParameters(TestOptions.Regular));
CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (2)
77""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 657var testParameters = new TestParameters(options: options, parseOptions: TestOptions.Regular8);
Diagnostics\GenerateMethod\GenerateMethodTests.cs (1)
4730new TestParameters(Options.Regular));
Diagnostics\GenerateType\GenerateTypeTests.cs (6)
198parameters: new TestParameters(Options.Regular)); 912parameters: new TestParameters(Options.Regular)); 3422parameters: new TestParameters(options: Option(CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, AddImportPlacement.InsideNamespace, NotificationOption2.Error))); 3598new TestParameters(GetScriptOptions())); 4915new TestParameters( 5404new TestParameters(options: Option(CodeStyleOptions2.FileHeaderTemplate, "I am a banner")));
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
58var actualDiagnostics = await this.GetDiagnosticsAsync(workspace, new TestParameters());
Diagnostics\PreferFrameworkType\PreferFrameworkTypeTests.cs (10)
74}", new TestParameters(options: NoFrameworkType)); 89}", new TestParameters(options: FrameworkTypeInDeclaration)); 103}", new TestParameters(options: FrameworkTypeEverywhere)); 118}", new TestParameters(options: FrameworkTypeEverywhere)); 133}", new TestParameters(options: FrameworkTypeInDeclaration)); 146}", new TestParameters(options: FrameworkTypeInDeclaration)); 161}", new TestParameters(options: FrameworkTypeInDeclaration)); 176}", new TestParameters(options: FrameworkTypeInDeclaration)); 251await TestMissingInRegularAndScriptAsync(code, new TestParameters(options: FrameworkTypeInDeclaration)); 267await TestMissingInRegularAndScriptAsync(code, new TestParameters(options: FrameworkTypeInDeclaration));
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (6)
435|]", new TestParameters(options: options)); 462|]", new TestParameters(options: options)); 1059var parameters = new TestParameters(); 1140}}|]", new TestParameters(options: options)); 1173}}", new TestParameters(options: options)); 1358", new TestParameters(options: Option(CodeStyleOptions2.PreferAutoProperties, true, NotificationOption2.Warning)));
Diagnostics\Suppression\SuppressionTests.cs (1)
445var parameters = new TestParameters();
FullyQualify\FullyQualifyTests.cs (23)
127"System.Collections.Generic.List", new TestParameters(testHost: testHost)); 140}", new TestParameters(testHost: testHost)); 159", new TestParameters(testHost: testHost)); 178", new TestParameters(testHost: testHost)); 312count: 1, new TestParameters(testHost: testHost)); 347}", new TestParameters(testHost: testHost)); 362}", new TestParameters(testHost: testHost)); 574}", new TestParameters(testHost: testHost)); 855}", new TestParameters(testHost: testHost)); 968}", new TestParameters(testHost: testHost)); 983}", new TestParameters(testHost: testHost)); 1013}", new TestParameters(testHost: testHost)); 1026}", new TestParameters(testHost: testHost)); 1041}", new TestParameters(testHost: testHost)); 1047await TestActionCountAsync(@"[ assembly : [|Guid|] ( ""9ed54f84-a89d-4fcd-a854-44251e925f09"" ) ] ", 2, new TestParameters(testHost: testHost)); 1072}", new TestParameters(testHost: testHost)); 1358}", new TestParameters(testHost: testHost)); 1370}", new TestParameters(testHost: testHost)); 1385await TestActionCountAsync(code, count: 1, new TestParameters(testHost: testHost)); 1512await TestInRegularAndScript1Async(InitialWorkspace, ExpectedDocumentText, new TestParameters(testHost: testHost)); 1543await TestMissingAsync(InitialWorkspace, new TestParameters(testHost: testHost)); 1584await TestInRegularAndScript1Async(InitialWorkspace, ExpectedDocumentText, new TestParameters(testHost: testHost)); 1616await TestMissingAsync(initialWorkspace, new TestParameters(
GenerateFromMembers\GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.cs (5)
1018new TestParameters(options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOption2.TrueWithSuggestionEnforcement))); 1306parameters: new TestParameters(options: 1343parameters: new TestParameters(options: 1385parameters: new TestParameters( 1951""", new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefixAndUnderscoreEndSuffix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefix)));
GenerateVariable\GenerateVariableTests.cs (1)
10611await TestMissingAsync("[|Console|].WriteLine();", new TestParameters(Options.Regular));
ImplementAbstractClass\ImplementAbstractClassTests.cs (1)
1838""", parameters: new TestParameters(globalOptions: options));
InitializeParameter\InitializeMemberFromParameterTests.cs (27)
1047""", index: 1, parameters: new TestParameters(options: options.FieldNamesAreCamelCaseWithUnderscorePrefix)); 1072""", index: 1, parameters: new TestParameters(options: options.FieldNamesAreCamelCaseWithUnderscorePrefix)); 1097""", index: 1, parameters: new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1122""", index: 1, parameters: new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1147""", index: 1, parameters: new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefix))); 1172""", parameters: new TestParameters(options: options.PropertyNamesArePascalCase)); 1197""", parameters: new TestParameters(options: options.PropertyNamesArePascalCase)); 1222""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1247""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1272""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1299""", index: 0, parameters: new TestParameters(options: options.FieldNamesAreCamelCaseWithUnderscorePrefix)); 1326""", index: 0, parameters: new TestParameters(options: options.FieldNamesAreCamelCaseWithUnderscorePrefix)); 1353""", index: 0, parameters: new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1380""", index: 0, parameters: new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1407""", index: 0, parameters: new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1434""", parameters: new TestParameters(options: options.PropertyNamesArePascalCase)); 1461""", parameters: new TestParameters(options: options.PropertyNamesArePascalCase)); 1488""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1515""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1542""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1558""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1575""", parameters: new TestParameters(options: options.MergeStyles(options.PropertyNamesArePascalCase, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix))); 1578private TestParameters OmitIfDefault_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning)); 1579private TestParameters Never_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning)); 1580private TestParameters Always_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning)); 1606""", index: 1, parameters: new TestParameters(options: options.FieldNamesAreCamelCaseWithUnderscorePrefix)); 1633""", parameters: new TestParameters(options: options.PropertyNamesArePascalCase));
InvokeDelegateWithConditionalAccessTests.cs (1)
142""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5)));
MakeFieldReadonlyTests.cs (1)
2247""", new TestParameters(parseOptions: s_strictFeatureFlag));
MakeLocalFunctionStatic\MakeLocalFunctionStaticRefactoringTests.cs (5)
42""", parameters: new TestParameters(parseOptions: CSharp72ParseOptions)); 62""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 82""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 102""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 690""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions));
MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProviderTests.cs (2)
49""", parameters: new TestParameters(parseOptions: CSharp72ParseOptions)); 69""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions));
MakeLocalFunctionStaticTests.cs (6)
86new TestParameters( 108""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 128""", parameters: new TestParameters(parseOptions: CSharp72ParseOptions)); 148""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 169""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 455""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions));
MakeMethodAsynchronousTests.cs (1)
96await TestActionCountAsync(initial, count: 1, new TestParameters(compilationOptions: new CSharpCompilationOptions(OutputKind.ConsoleApplication)));
MakeRefStructTests.cs (6)
74await TestMissingInRegularAndScriptAsync(text, new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview))); 89await TestMissingInRegularAndScriptAsync(text, new TestParameters(s_parseOptions)); 102await TestMissingInRegularAndScriptAsync(text, new TestParameters(s_parseOptions)); 155await TestMissingInRegularAndScriptAsync(text, new TestParameters(s_parseOptions)); 168await TestMissingInRegularAndScriptAsync(text, new TestParameters(s_parseOptions)); 203await TestMissingInRegularAndScriptAsync(text, new TestParameters(s_parseOptions));
MisplacedUsingDirectivesTests.cs (1)
72=> new(options: new OptionsCollection(GetLanguage()) { { CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, preferredPlacementOption } });
NamingStylesTests.cs (40)
45}", new TestParameters(options: s_options.ClassNamesArePascalCase)); 137}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 157}}", new TestParameters(options: s_options.MethodNamesWithAccessibilityArePascalCase(ImmutableArray<Accessibility>.Empty))); 197}}", new TestParameters(options: s_options.SymbolKindsArePascalCaseEmpty())); 242}}", new TestParameters(options: s_options.SymbolKindsArePascalCase(alternateSymbolKind))); 249}}", new TestParameters(options: s_options.AccessibilitiesArePascalCase(ImmutableArray.Create(alternateAccessibility)))); 290}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 300}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 316}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 331}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 569}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 588}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 745}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 764}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 776}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 789}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 802}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 815}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 861}", new TestParameters(options: s_options.ConstantsAreUpperCase)); 874}", new TestParameters(options: s_options.ConstantsAreUpperCase)); 953}", new TestParameters(options: s_options.LocalFunctionNamesAreCamelCase)); 1012}", new TestParameters(options: s_options.AsyncFunctionNamesEndWithAsync)); 1027}", new TestParameters(options: s_options.AsyncFunctionNamesEndWithAsync)); 1092}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 1107}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 1150}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 1193}", new TestParameters(options: s_options.PropertyNamesArePascalCase)); 1209}", new TestParameters(options: s_options.MethodNamesArePascalCase)); 1221", new TestParameters(options: s_options.InterfaceNamesStartWithI)); 1233var testParameters = new TestParameters(options: s_options.ClassNamesArePascalCase); 1258var testParameters = new TestParameters(options: s_options.InterfaceNamesStartWithI); 1286var testParameters = new TestParameters(options: s_options.TypeParameterNamesStartWithT); 1307new TestParameters(options: s_options.MergeStyles(s_options.PropertyNamesArePascalCase, s_options.ParameterNamesAreCamelCaseWithPUnderscorePrefix))); 1320new TestParameters(options: s_options.MergeStyles(s_options.PropertyNamesArePascalCase, s_options.ParameterNamesAreCamelCaseWithPUnderscorePrefix))); 1344}}", new TestParameters(options: s_options.ParameterNamesAreCamelCase)); 1360}}", new TestParameters(options: s_options.LocalNamesAreCamelCase)); 1376}", new TestParameters(options: s_options.PropertyNamesArePascalCase)); 1391}", new TestParameters(options: s_options.AsyncFunctionNamesEndWithAsync)); 1401", new TestParameters(options: s_options.AsyncFunctionNamesEndWithAsync)); 1412}", new TestParameters(options: s_options.MethodNamesArePascalCase));
QualifyMemberAccessTests.cs (1)
40=> TestMissingInRegularAndScriptAsync(code, new TestParameters(options: Option(option, true, notification)));
RemoveUnnecessaryCast\RemoveUnnecessaryCastTests_AsTests.cs (5)
1453""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8))); 1468""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9))); 3332""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_1))); 3351""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_1))); 3370""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_1)));
RemoveUnnecessaryExpressionParenthesesTests.cs (51)
43await TestMissingAsync(initial, parameters: new TestParameters(options: RequireAllParenthesesForClarity)); 65""", new TestParameters(options: IgnoreAllParentheses)); 95""", new TestParameters(options: RequireArithmeticBinaryParenthesesForClarity)); 151""", parameters: new TestParameters(options: RequireArithmeticBinaryParenthesesForClarity)); 166""", new TestParameters(options: RequireOtherBinaryParenthesesForClarity)); 190""", parameters: new TestParameters(options: RequireOtherBinaryParenthesesForClarity)); 650""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 665""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 705""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 720""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 759""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 898""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 913""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 928""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1076""", parameters: new TestParameters(options: RequireAllParenthesesForClarity)); 1093""", parameters: new TestParameters(options: RequireAllParenthesesForClarity)); 1108""", parameters: new TestParameters(options: RequireArithmeticBinaryParenthesesForClarity)); 1123""", parameters: new TestParameters(options: RequireAllParenthesesForClarity)); 1138""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1162""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1177""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1192""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1207""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1231""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1246""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1261""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1420""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1450""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1465""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 1480""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2572""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2587""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2612""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2637""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2661""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2685""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2709""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2724""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2739""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2754""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2779parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2795""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 2811""", new TestParameters(options: RemoveAllUnnecessaryParentheses), parentheticalExpressionDiagnostic); 2828""", new TestParameters(options: RemoveAllUnnecessaryParentheses), firstLineParentheticalExpressionDiagnostic); 2846""", new TestParameters(options: RemoveAllUnnecessaryParentheses), expectedDiagnostics); 2866""", new TestParameters(options: RemoveAllUnnecessaryParentheses), expectedDiagnostics); 2882var parameters = new TestParameters(options: RemoveAllUnnecessaryParentheses); 3043""", new TestParameters(options: RemoveAllUnnecessaryParentheses)); 3208""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses)); 3223""", parameters: new TestParameters( 3249""", parameters: new TestParameters(options: RemoveAllUnnecessaryParentheses));
RemoveUnnecessaryPatternParenthesesTests.cs (3)
41await TestMissingAsync(initial, parameters: new TestParameters(options: RequireAllParenthesesForClarity)); 69""", parameters: new TestParameters(options: RequireArithmeticBinaryParenthesesForClarity)); 84""", new TestParameters(options: RequireOtherBinaryParenthesesForClarity));
RemoveUnusedParametersTests.cs (4)
44=> TestDiagnosticMissingAsync(initialMarkup, new TestParameters(parseOptions, options: options, retainNonFixableDiagnostics: true)); 48=> TestDiagnosticsAsync(initialMarkup, new TestParameters(parseOptions, options: options, retainNonFixableDiagnostics: true), expectedDiagnostics); 1218var testParameters = new TestParameters(retainNonFixableDiagnostics: true); 1504var parameters = new TestParameters(globalOptions: options, retainNonFixableDiagnostics: true);
RemoveUnusedValueAssignmentTests.cs (11)
1710}", new TestParameters(options: PreferUnusedLocal)); 1752}", new TestParameters(options: PreferUnusedLocal)); 2526}", new TestParameters(options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(languageVersion))); 5516}", new TestParameters(options: PreferUnusedLocal)); 5581}", new TestParameters(options: PreferUnusedLocal)); 7101}", new TestParameters(options: PreferDiscard, retainNonFixableDiagnostics: true), 7146}}", new TestParameters(options: GetOptions(optionName), retainNonFixableDiagnostics: true)); 8338}", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8))); 8357}", new TestParameters(options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(languageVersion))); 8372}", new TestParameters(options: PreferDiscard, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp8))); 8470}", new TestParameters(options: PreferUnusedLocal, parseOptions: new CSharpParseOptions(languageVersion)));
RemoveUnusedValuesTestsBase.cs (2)
47=> TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: options, parseOptions: parseOptions)); 66await TestMissingInRegularAndScriptAsync(initialMarkup, new TestParameters(options: options, parseOptions: parseOptions));
ReplaceDefaultLiteralTests.cs (1)
58new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(version)));
SimplifyInterpolationTests.cs (1)
32var parameters = new TestParameters(retainNonFixableDiagnostics: true, includeDiagnosticsOutsideSelection: true);
SimplifyTypeNames\SimplifyTypeNamesTests.cs (23)
1148source, count: 1, parameters: new TestParameters(options: featureOptions)); 1155""", parameters: new TestParameters(options: featureOptions)); 2293new TestParameters(Options.Script)); 3752await TestMissingAsync(source, new TestParameters(GetScriptOptions())); 4461""", new TestParameters(options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error))); 4601""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error))); 4648""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error))); 4692""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error))); 4732""", new TestParameters(options: PreferIntrinsicTypeInDeclaration)); 4749""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error))); 4766""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error))); 4783""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error))); 4874""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error))); 4889""", new TestParameters(options: Option(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error))); 4941""", parameters: new TestParameters(options: PreferIntrinsicTypeEverywhere)); 5206""", new TestParameters(options: PreferImplicitTypeEverywhere)); 5227""", new TestParameters(options: PreferImplicitTypeEverywhere)); 5470""", new TestParameters(options: PreferImplicitTypeEverywhere)); 7010await TestMissingInRegularAndScriptAsync(source, new TestParameters(options: featureOptions)); 7050""", new TestParameters(options: featureOptions)); 7064await TestMissingInRegularAndScriptAsync(source, new TestParameters(options: featureOptions)); 7104""", new TestParameters(options: featureOptions)); 7108=> await TestInRegularAndScript1Async(code, expected, index, new TestParameters(options: PreferIntrinsicTypeEverywhere));
UpdateProjectToAllowUnsafeTests.cs (2)
32var parameters = new TestParameters(); 43await TestMissingAsync(initialMarkup, new TestParameters(compilationOptions:
UpgradeProjectTests.cs (2)
40var parameters = new TestParameters(parseOptions: parseOptions, index: index); 62var parameters = new TestParameters(parseOptions: parseOptions, index: index);
UseAutoPropertyTests.cs (5)
110""", new TestParameters(TestOptions.RegularPreview)); 470""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5))); 516""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5))); 2672""", new TestParameters(options: Option(FormattingOptions2.UseTabs, true))); 2692""", new TestParameters(options: Option(FormattingOptions2.UseTabs, false)));
UseConditionalExpressionForReturnTests.cs (5)
167""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 730""", parameters: new(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(languageVersion))); 796""", parameters: new(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(languageVersion))); 831""", parameters: new(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(languageVersion))); 866""", parameters: new(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(languageVersion)));
UseExplicitTypeTests.cs (53)
91""", new TestParameters(options: ExplicitTypeEverywhere())); 105""", new TestParameters(options: ExplicitTypeEverywhere())); 140await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 172await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 190""", new TestParameters(options: ExplicitTypeEverywhere())); 207""", new TestParameters(options: ExplicitTypeEverywhere())); 228""", new TestParameters(options: ExplicitTypeEverywhere())); 245""", new TestParameters(options: ExplicitTypeEverywhere())); 263""", new TestParameters(options: ExplicitTypeEverywhere())); 301""", new TestParameters(options: ExplicitTypeEverywhere())); 324""", new TestParameters(options: ExplicitTypeEverywhere())); 345""", new TestParameters(options: ExplicitTypeEverywhere())); 373await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 374await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeExceptWhereApparent())); 598await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 629await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 662await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 693await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 724await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 755await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 784await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 817await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 850await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 881await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 910await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 939await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 974await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1007await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1040await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1077await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1110await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1164await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1208""", new TestParameters(options: ExplicitTypeEverywhere())); 1231""", new TestParameters(options: ExplicitTypeEverywhere())); 1504""", new TestParameters(options: ExplicitTypeEverywhere())); 1521""", new TestParameters(options: ExplicitTypeEverywhere())); 2549""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2568""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2585""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2606""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2624""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2642""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2660""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2683""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2701""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2720""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2738""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2759""", new TestParameters(options: ExplicitTypeEverywhere())); 2775""", new TestParameters(options: ExplicitTypeEverywhere())); 2801await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2818await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeEverywhere())); 2819await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2820await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeExceptWhereApparent()));
UseExpressionBody\Refactoring\UseExpressionBodyFixAllTests.cs (6)
54}", parameters: new TestParameters(options: UseBlockBody)); 129</Workspace>", parameters: new TestParameters(options: UseBlockBody)); 201</Workspace>", parameters: new TestParameters(options: UseBlockBody)); 244}", parameters: new TestParameters(options: UseBlockBody)); 284}", parameters: new TestParameters(options: UseBlockBody)); 363parameters: new TestParameters(options: UseBlockBodyForMethodsAndAccessorsAndProperties));
UseExpressionBody\Refactoring\UseExpressionBodyForAccessorsRefactoringTests.cs (12)
99}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_BlockBodyForProperties)); 115}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_ExpressionBodyForProperties)); 135}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_BlockBodyForProperties_DisabledDiagnostic)); 155}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_ExpressionBodyForProperties_DisabledDiagnostic)); 178}", parameters: new TestParameters(options: UseBlockBodyForAccessors_ExpressionBodyForProperties)); 198}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties)); 208}", parameters: new TestParameters(options: UseBlockBodyForAccessors_ExpressionBodyForProperties)); 223}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties_DisabledDiagnostic)); 238}", parameters: new TestParameters(options: UseBlockBodyForAccessors_ExpressionBodyForProperties_DisabledDiagnostic)); 253}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties)); 267}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_BlockBodyForProperties)); 287}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_ExpressionBodyForProperties));
UseExpressionBody\Refactoring\UseExpressionBodyForConstructorsRefactoringTests.cs (7)
47}", parameters: new TestParameters(options: UseExpressionBody)); 64}", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 81}", parameters: new TestParameters(options: UseBlockBody)); 94}", parameters: new TestParameters(options: UseBlockBody)); 104}", parameters: new TestParameters(options: UseBlockBody)); 121}", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 138}", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBody\Refactoring\UseExpressionBodyForConversionOperatorsRefactoringTests.cs (7)
47}", parameters: new TestParameters(options: UseExpressionBody)); 64}", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 81}", parameters: new TestParameters(options: UseBlockBody)); 94}", parameters: new TestParameters(options: UseBlockBody)); 104}", parameters: new TestParameters(options: UseBlockBody)); 121}", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 138}", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBody\Refactoring\UseExpressionBodyForIndexersRefactoringTests.cs (7)
51}", parameters: new TestParameters(options: UseExpressionBody)); 71}", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 91}", parameters: new TestParameters(options: UseBlockBody)); 107}", parameters: new TestParameters(options: UseBlockBody)); 117}", parameters: new TestParameters(options: UseBlockBody)); 137}", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 157}", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBody\Refactoring\UseExpressionBodyForLocalFunctionsRefactoringTests.cs (6)
50}", parameters: new TestParameters(options: UseExpressionBody)); 73}", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 96}", parameters: new TestParameters(options: UseBlockBody)); 109}", parameters: new TestParameters(options: UseBlockBody)); 132}", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 155}", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBody\Refactoring\UseExpressionBodyForMethodsRefactoringTests.cs (13)
46}", parameters: new TestParameters(options: UseExpressionBody)); 63}", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 80}", parameters: new TestParameters(options: UseBlockBody)); 93}", parameters: new TestParameters(options: UseBlockBody)); 103}", parameters: new TestParameters(options: UseBlockBody)); 120}", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 137}", parameters: new TestParameters(options: UseExpressionBody)); 154}", parameters: new TestParameters(options: UseBlockBody)); 171}", parameters: new TestParameters(options: UseBlockBody)); 190}", parameters: new TestParameters(options: UseBlockBody)); 204}", parameters: new TestParameters(options: UseBlockBody)); 218}", parameters: new TestParameters(options: UseBlockBody)); 238}", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBody\Refactoring\UseExpressionBodyForOperatorsRefactoringTests.cs (7)
47}", parameters: new TestParameters(options: UseExpressionBody)); 64}", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 81}", parameters: new TestParameters(options: UseBlockBody)); 94}", parameters: new TestParameters(options: UseBlockBody)); 104}", parameters: new TestParameters(options: UseBlockBody)); 121}", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 138}", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBody\Refactoring\UseExpressionBodyForPropertiesRefactoringTests.cs (12)
89}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_ExpressionBodyForProperties)); 109}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_ExpressionBodyForProperties_DisabledDiagnostic)); 132}", parameters: new TestParameters(options: UseBlockBodyForAccessors_ExpressionBodyForProperties)); 152}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_BlockBodyForProperties)); 172}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties)); 188}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties)); 198}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_BlockBodyForProperties)); 208}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties)); 228}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_BlockBodyForProperties_DisabledDiagnostic)); 248}", parameters: new TestParameters(options: UseBlockBodyForAccessors_BlockBodyForProperties_DisabledDiagnostic)); 268}", parameters: new TestParameters(options: UseExpressionBodyForAccessors_ExpressionBodyForProperties)); 288}", parameters: new TestParameters(options: UseBlockBodyForAccessors_ExpressionBodyForProperties));
UseExpressionBodyForLambda\UseExpressionBodyForLambdasRefactoringTests.cs (7)
53""", parameters: new TestParameters(options: UseExpressionBody)); 84""", parameters: new TestParameters(options: UseExpressionBodyDisabledDiagnostic)); 115""", parameters: new TestParameters(options: UseBlockBody)); 130""", parameters: new TestParameters(options: UseBlockBody)); 147""", parameters: new TestParameters(options: UseBlockBody)); 178""", parameters: new TestParameters(options: UseBlockBodyDisabledDiagnostic)); 209""", parameters: new TestParameters(options: UseExpressionBody));
UseExpressionBodyForLambdasAnalyzerTests.cs (5)
80""", new TestParameters(options: UseExpressionBody)); 128""", new TestParameters(options: UseBlockBody)); 218""", new TestParameters(options: UseExpressionBody)); 238""", new TestParameters(options: UseExpressionBody)); 258""", new TestParameters(options: UseExpressionBody));
UseImplicitTypeTests.cs (59)
98""", new TestParameters(options: ImplicitTypeEverywhere())); 112""", new TestParameters(options: ImplicitTypeEverywhere())); 129""", new TestParameters(options: ImplicitTypeEverywhere())); 146""", new TestParameters(options: ImplicitTypeEverywhere())); 161""", new TestParameters(options: ImplicitTypeEverywhere())); 178""", new TestParameters(options: ImplicitTypeEverywhere())); 197""", new TestParameters(options: ImplicitTypeEverywhere())); 214""", new TestParameters(options: ImplicitTypeEverywhere())); 231""", new TestParameters(options: ImplicitTypeEverywhere())); 248""", new TestParameters(options: ImplicitTypeEverywhere())); 265""", new TestParameters(options: ImplicitTypeEverywhere())); 282""", new TestParameters(options: ImplicitTypeEverywhere())); 299""", new TestParameters(options: ImplicitTypeEverywhere())); 322""", new TestParameters(options: ImplicitTypeEverywhere())); 343""", new TestParameters(options: ImplicitTypeEverywhere())); 360""", new TestParameters(options: ImplicitTypeEverywhere())); 378""", new TestParameters(options: ImplicitTypeEverywhere())); 396""", new TestParameters(options: ImplicitTypeEverywhere())); 413""", new TestParameters(options: ImplicitTypeEverywhere())); 430""", new TestParameters(options: ImplicitTypeEverywhere())); 449""", new TestParameters(options: ImplicitTypeEverywhere())); 471""", new TestParameters(options: ImplicitTypeEverywhere())); 610""", new TestParameters(options: ImplicitTypeEverywhere())); 632""", new TestParameters(options: ImplicitTypeEverywhere())); 1447""", new TestParameters(options: ImplicitTypeButKeepIntrinsics())); 1466""", new TestParameters(options: ImplicitTypeButKeepIntrinsics())); 1485""", new TestParameters(options: ImplicitTypeButKeepIntrinsics())); 1558""", new TestParameters(options: ImplicitTypeWhereApparent())); 1634""", new TestParameters(options: ImplicitTypeWhereApparent())); 1652""", new TestParameters(options: ImplicitTypeWhereApparent())); 1678""", new TestParameters(options: ImplicitTypeWhereApparent())); 1967await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeButKeepIntrinsics())); 1968await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeWhereApparent())); // Preference of intrinsic types dominates 1992await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeWhereApparent())); 2021await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeWhereApparent())); 2031await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeWhereApparentAndForIntrinsics())); 2032await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeWhereApparent())); 2106new TestParameters(options: ImplicitTypeEverywhere())); 2143new TestParameters(options: ImplicitTypeEverywhere())); 2254await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ImplicitTypeButKeepIntrinsics())); 2276""", new TestParameters(options: ImplicitTypeEverywhere())); 2298""", new TestParameters(options: ImplicitTypeEverywhere())); 2320""", new TestParameters(options: ImplicitTypeEverywhere())); 2519""", new TestParameters(options: ImplicitTypeEverywhere())); 2536""", new TestParameters(options: ImplicitTypeEverywhere())); 2640""", new TestParameters(options: ImplicitTypeEverywhere())); 2660""", new TestParameters(options: ImplicitTypeEverywhere())); 2678""", new TestParameters(options: ImplicitTypeEverywhere())); 2706""", new TestParameters(options: ImplicitTypeEverywhere())); 2730""", new TestParameters(options: ImplicitTypeEverywhere())); 2759""", new TestParameters(options: ImplicitTypeEverywhere())); 2785""", new TestParameters(options: ImplicitTypeEverywhere())); 2817""", new TestParameters(options: ImplicitTypeEverywhere())); 2838""", new TestParameters(options: ImplicitTypeEverywhere())); 2865""", new TestParameters(options: ImplicitTypeEverywhere())); 2938""", parameters: new TestParameters(options: ImplicitTypeEverywhere())); 3012""", parameters: new TestParameters(options: ImplicitTypeEverywhere())); 3040""", parameters: new TestParameters(options: ImplicitTypeEverywhere())); 3058""", new TestParameters(options: ImplicitTypeEverywhere()));
UseInferredMemberNameTests.cs (4)
71""", parameters: new TestParameters(parseOptions: s_parseOptions)); 87""", count: 0, parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 103""", count: 0, parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7))); 173""", parameters: new TestParameters(parseOptions: s_parseOptions));
UseInterpolatedVerbatimStringCodeFixTests.cs (6)
49""", parameters: new TestParameters().WithParseOptions(new CSharpParseOptions(LanguageVersion.CSharp7_3))); 64""", parameters: new TestParameters().WithParseOptions(new CSharpParseOptions(LanguageVersion.CSharp7_3))); 88""", parameters: new TestParameters().WithParseOptions(new CSharpParseOptions(LanguageVersion.CSharp7_3))); 114""", parameters: new TestParameters().WithParseOptions(new CSharpParseOptions(LanguageVersion.CSharp7_3))); 129""", parameters: new TestParameters().WithParseOptions(new CSharpParseOptions(LanguageVersion.CSharp7_3))); 144""", parameters: new TestParameters().WithParseOptions(new CSharpParseOptions(LanguageVersion.CSharp8)));
UseIsNullCheckForCastAndEqualityOperatorTests.cs (3)
95new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8))); 115new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9))); 283""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
UseIsNullCheckForReferenceEqualsTests.cs (12)
99new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8))); 119new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9))); 239""", new TestParameters(parseOptions: CSharp7)); 269""", new TestParameters(parseOptions: CSharp9)); 287""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 380""", new TestParameters(parseOptions: CSharp7)); 414""", new TestParameters(parseOptions: CSharp8)); 443""", new TestParameters(parseOptions: CSharp7)); 472""", new TestParameters(parseOptions: CSharp9)); 532""", new TestParameters(parseOptions: CSharp7)); 562""", new TestParameters(parseOptions: CSharp9)); 662""", new TestParameters(parseOptions: CSharp7));
UseLocalFunctionTests.cs (3)
53""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6))); 967new TestParameters(parseOptions: CSharp72ParseOptions)); 1525new TestParameters(parseOptions: CSharp72ParseOptions));
UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzerTests.cs (1)
44=> TestMissingAsync(initialMarkup, new TestParameters(
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzerTests.cs (1)
69""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
UseSimpleUsingStatementTests.cs (20)
83new TestParameters( 133""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 152""", parameters: new TestParameters(parseOptions: CSharp72ParseOptions)); 171""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 191""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 380new TestParameters(parseOptions: CSharp8ParseOptions)); 557new TestParameters(parseOptions: CSharp8ParseOptions)); 690""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 711""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 734""", parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 757parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 794parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 818parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 857parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 881parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 920parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 942parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 979parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 1003parameters: new TestParameters(parseOptions: CSharp8ParseOptions)); 1042parameters: new TestParameters(parseOptions: CSharp8ParseOptions));
UseSystemHashCodeTests.cs (1)
1337""", new TestParameters(options: UseVarTestExtensions.PreferImplicitTypeWithInfo(this)));
UseThrowExpressionTests.cs (1)
150""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
ValidateFormatStringTests.cs (1)
680await TestDiagnosticMissingAsync(source, new TestParameters(globalOptions: options));
Wrapping\AbstractWrappingTests.cs (1)
24=> new(globalOptions: Option(CodeActionOptionsStorage.WrappingColumn, column));
Wrapping\BinaryExpressionWrappingTests.cs (2)
25=> new(options: Option(CodeStyleOptions2.OperatorPlacementWhenWrapping, OperatorPlacementWhenWrappingPreference.EndOfLine)); 28=> new(options: Option(CodeStyleOptions2.OperatorPlacementWhenWrapping, OperatorPlacementWhenWrappingPreference.BeginningOfLine));
Wrapping\ParameterWrappingTests.cs (4)
1247""", new TestParameters(TestOptions.RegularPreview)); 1258""", new TestParameters(TestOptions.RegularPreview)); 1269""", new TestParameters(TestOptions.RegularPreview)); 1280""", new TestParameters(TestOptions.RegularPreview));
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (23)
ChangeSignature\AbstractChangeSignatureTests.cs (1)
51var testOptions = new TestParameters();
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (14)
95public static readonly TestParameters Default = new(parseOptions: null); 98=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 101=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 104=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 107=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 110=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 113=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 116=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 119=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 122=> new(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, retainNonFixableDiagnostics, includeDiagnosticsOutsideSelection, title, testHost, workspaceKind); 318=> TestSmartTagTextAsync(initialMarkup, displayText, new TestParameters(index: index)); 321=> TestSmartTagGlyphTagsAsync(initialMarkup, glyphTags, new TestParameters(index: index)); 389new TestParameters(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, title: title, testHost: testHost)); 430new TestParameters(parseOptions, compilationOptions, options, globalOptions, fixProviderData, index, priority, testHost: testHost));
Diagnostics\AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
211var testOptions = new TestParameters(parseOptions, compilationOptions, options: options, globalOptions: globalOptions);
Diagnostics\AbstractUserDiagnosticTest.cs (1)
229new TestParameters(parseOptions, compilationOptions, options, globalOptions, fixProviderData),
Diagnostics\AbstractUserDiagnosticTest_GenerateTypeDialog.cs (1)
68var testOptions = new TestParameters();
MoveToNamespace\AbstractMoveToNamespaceTests.cs (2)
38testParameters ??= new TestParameters(); 105var workspace = CreateWorkspaceFromOptions(markup, new TestParameters());
MoveType\AbstractMoveTypeTest.cs (3)
47var testOptions = new TestParameters(fixProviderData: fixProviderData); 90var testOptions = new TestParameters(fixProviderData: fixProviderData); 160var testOptions = new TestParameters(index: index, options: options);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
41var codeIssueOrRefactoring = await GetCodeRefactoringAsync(workspace, new TestParameters());
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (122)
AddExplicitCastTests.vb (6)
2943Dim workspace = CreateWorkspaceFromOptions(initialMarkup, New TestParameters()) 2944Dim actions = Await GetCodeActionsAsync(workspace, New TestParameters()) 3009Dim workspace = CreateWorkspaceFromOptions(initialMarkup, New TestParameters()) 3010Dim actions = Await GetCodeActionsAsync(workspace, New TestParameters()) 3198Dim workspace = CreateWorkspaceFromOptions(initialMarkup, New TestParameters()) 3199Dim actions = Await GetCodeActionsAsync(workspace, New TestParameters())
CodeActions\AbstractVisualBasicCodeActionTest.vb (1)
43New TestParameters(parseOptions:=Nothing, compilationOptions:=_compilationOptions))
CodeActions\EncapsulateField\EncapsulateFieldTests.vb (4)
479Await TestActionCountAsync(text, 2, New TestParameters(testHost:=host)) 601Await TestMissingInRegularAndScriptAsync(globalField, New TestParameters(testHost:=host)) 608Await TestMissingInRegularAndScriptAsync(namespaceField, New TestParameters(testHost:=host)) 615Await TestMissingInRegularAndScriptAsync(enumField, New TestParameters(testHost:=host))
CodeActions\IntroduceVariable\IntroduceVariableTests.vb (1)
2491Await TestSmartTagTextAsync(code, String.Format(FeaturesResources.Introduce_local_constant_for_0, """a b c"""), New TestParameters(index:=2))
CodeActions\Preview\PreviewTests.vb (1)
87Dim parameters As New TestParameters()
Diagnostics\AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest.vb (1)
43Await MyBase.TestMissingAsync(initialMarkupStr, New TestParameters(parseOptions:=Nothing, compilationOptions:=_compilationOptions))
Diagnostics\AddImport\AbstractAddImportTests.vb (1)
23parameters:=New TestParameters(
Diagnostics\AddImport\AddImportTests_NuGet.vb (4)
152New TestParameters(fixProviderData:=New ProviderData(installerServiceMock.Object, packageServiceMock.Object))) 179parameters:=New TestParameters(fixProviderData:=data)) 187parameters:=New TestParameters(index:=1, fixProviderData:=data)) 195parameters:=New TestParameters(index:=2, fixProviderData:=data))
Diagnostics\FullyQualify\FullyQualifyTests.vb (8)
85"System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox"}, New TestParameters(testHost:=testHost)) 343End Namespace", New TestParameters(testHost:=testHost)) 356End Namespace", New TestParameters(testHost:=testHost)) 464End Class", New TestParameters(testHost:=testHost)) 670End Class", New TestParameters(testHost:=testHost)) 682End Class", New TestParameters(testHost:=testHost)) 736End Module", New TestParameters(testHost:=testHost)) 753End Class", New TestParameters(testHost:=testHost))
Diagnostics\GenerateType\GenerateTypeTests.vb (1)
801parameters:=New TestParameters(parseOptions:=TestOptions.Regular))
Diagnostics\PreferFrameworkType\PreferFrameworkTypeTests.vb (15)
69", New TestParameters(options:=NoFrameworkType)) 78", New TestParameters(options:=FrameworkTypeEverywhere)) 88", New TestParameters(options:=FrameworkTypeEverywhere)) 97", New TestParameters(options:=FrameworkTypeEverywhere)) 106", New TestParameters(options:=FrameworkTypeEverywhere)) 115", New TestParameters(options:=FrameworkTypeEverywhere)) 124", New TestParameters(options:=FrameworkTypeEverywhere)) 133", New TestParameters(options:=FrameworkTypeEverywhere)) 142", New TestParameters(options:=FrameworkTypeEverywhere)) 151", New TestParameters(options:=FrameworkTypeEverywhere)) 160", New TestParameters(options:=FrameworkTypeEverywhere)) 169", New TestParameters(options:=FrameworkTypeEverywhere)) 178", New TestParameters(options:=FrameworkTypeEverywhere)) 187", New TestParameters(options:=FrameworkTypeEverywhere)) 196", New TestParameters(options:=FrameworkTypeEverywhere))
Diagnostics\Suppression\SuppressionTests.vb (1)
595New TestParameters(enableDocCommentProcessing))
GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.vb (1)
370Dim parameters = New TestParameters()
ImplementAbstractClass\ImplementAbstractClassTests.vb (1)
635End Class", parameters:=New TestParameters(globalOptions:=[Option](ImplementTypeOptionsStorage.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferAutoProperties)))
ImplementInterface\ImplementInterfaceTests.vb (1)
4533end class", parameters:=New TestParameters(globalOptions:=[Option](ImplementTypeOptionsStorage.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferAutoProperties)))
InitializeParameter\InitializeMemberFromParameterTests.vb (3)
1000Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning)) 1006Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning)) 1012Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning))
MakeFieldReadonlyTests.vb (1)
1171", New TestParameters(parseOptions:=s_strictFeatureFlag))
NamingStylesTests.vb (14)
186end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 234end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 287end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 316end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 328end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 342end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 356end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 365end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 375end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 385end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 395end module", New TestParameters(options:=s_options.LocalNamesAreCamelCase)) 431end module", New TestParameters(options:=s_options.ConstantsAreUpperCase)) 441end module", New TestParameters(options:=s_options.ConstantsAreUpperCase)) 502New TestParameters(options:=s_options.MethodNamesArePascalCase))
QualifyMemberAccessTests.vb (1)
36New TestParameters(options:=[Option](opt, True, notification)))
RemoveUnnecessaryImportsTests.vb (1)
944End Namespace|]</Text>.NormalizedValue, New TestParameters(parseOptions:=TestOptions.Regular))
RemoveUnnecessaryParenthesesTests.vb (23)
50Await TestMissingAsync(initial, parameters:=New TestParameters(options:=RequireAllParenthesesForClarity, compilationOptions:=compilationOptions)) 61end class", New TestParameters(options:=IgnoreAllParentheses)) 81end class", New TestParameters(options:=RequireArithmeticBinaryParenthesesForClarity)) 96end class", parameters:=New TestParameters(options:=RequireArithmeticBinaryParenthesesForClarity)) 106end class", New TestParameters(options:=RequireOtherBinaryParenthesesForClarity)) 121end class", parameters:=New TestParameters(options:=RequireOtherBinaryParenthesesForClarity)) 146end class", New TestParameters(options:=RequireArithmeticBinaryParenthesesForClarity)) 249end class", New TestParameters(options:=RequireAllParenthesesForClarity)) 421end class", New TestParameters(options:=RemoveAllUnnecessaryParentheses)) 431end class", New TestParameters(options:=RemoveAllUnnecessaryParentheses)) 499end class", parameters:=New TestParameters(options:=RequireAllParenthesesForClarity)) 513end class", parameters:=New TestParameters(options:=RequireAllParenthesesForClarity)) 523end class", parameters:=New TestParameters(options:=RequireArithmeticBinaryParenthesesForClarity)) 533end class", parameters:=New TestParameters(options:=RequireAllParenthesesForClarity)) 543end class", parameters:=New TestParameters(options:=RemoveAllUnnecessaryParentheses)) 553end class", parameters:=New TestParameters(options:=RemoveAllUnnecessaryParentheses)) 563end class", parameters:=New TestParameters(options:=RemoveAllUnnecessaryParentheses)) 578end class", parameters:=New TestParameters(options:=RemoveAllUnnecessaryParentheses)) 589end class", New TestParameters(options:=RemoveAllUnnecessaryParentheses), parentheticalExpressionDiagnostic) 601end class", New TestParameters(options:=RemoveAllUnnecessaryParentheses), firstLineParentheticalExpressionDiagnostic) 614end class", New TestParameters(options:=RemoveAllUnnecessaryParentheses, compilationOptions:=DoNotCheckOverflow), expectedDiagnostics) 629end class", New TestParameters(options:=RemoveAllUnnecessaryParentheses, compilationOptions:=DoNotCheckOverflow), expectedDiagnostics) 641Dim parameters = New TestParameters(options:=RemoveAllUnnecessaryParentheses)
RemoveUnusedMembersTests.vb (1)
20Return TestDiagnosticMissingAsync(initialMarkup, New TestParameters(retainNonFixableDiagnostics:=True))
RemoveUnusedParametersTests.vb (1)
20Return TestDiagnosticMissingAsync(initialMarkup, New TestParameters(retainNonFixableDiagnostics:=True))
RemoveUnusedValuesTestsBase.vb (1)
24Return TestMissingInRegularAndScriptAsync(initialMarkup, New TestParameters(options:=options))
SimplifyInterpolationTests.vb (1)
22Dim parameters = New TestParameters(retainNonFixableDiagnostics:=True, includeDiagnosticsOutsideSelection:=True)
SimplifyThisOrMe\SimplifyThisOrMeTests.vb (1)
35Dim parameters3 As New TestParameters()
SimplifyTypeNames\SimplifyTypeNamesTests.vb (15)
1569Await TestMissingAsync(source, New TestParameters(GetScriptOptions())) 1823Dim diagnosticAndFixes = Await GetDiagnosticAndFixesAsync(workspace, New TestParameters()) 1871Dim diagnosticAndFixes = Await GetDiagnosticAndFixesAsync(workspace, New TestParameters()) 1905Dim diagnosticAndFixes = Await GetDiagnosticAndFixesAsync(workspace, New TestParameters()) 2122New TestParameters(options:=PreferIntrinsicPredefinedTypeEverywhere())) 2136Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2150Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2164Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2243Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2257Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2269Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2300Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2334Dim parameters As New TestParameters() 2350Dim parameters2 As New TestParameters() 2497End Module", New TestParameters(options:=PreferIntrinsicPredefinedTypeEverywhere()))
UseAutoPropertyTests.vb (2)
342New TestParameters(VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic9))) 467New TestParameters(VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12)))
UseInferredMemberNameTests.vb (3)
55", parameters:=New TestParameters(s_parseOptions)) 69", New TestParameters(s_parseOptions)) 147", parameters:=New TestParameters(s_parseOptions))
UseNamedArguments\UseNamedArgumentsTests.vb (1)
19New TestParameters(parseOptions:=TestOptions.Regular.WithLanguageVersion(LanguageVersion.VisualBasic15))
UseNullPropagationTests.vb (2)
51End Class", New TestParameters(VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12))) 66End Class", New TestParameters(VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12)))
ValidateFormatStringTests.vb (1)
335Await TestDiagnosticMissingAsync(source, New TestParameters(globalOptions:=
Wrapping\AbstractParameterWrappingTests.vb (1)
19Return New TestParameters(globalOptions:=[Option](CodeActionOptionsStorage.WrappingColumn, column))
Wrapping\BinaryExpressionWrappingTests.vb (2)
20New TestParameters(options:=[Option](CodeStyleOptions2.OperatorPlacementWhenWrapping, OperatorPlacementWhenWrappingPreference.EndOfLine)) 23New TestParameters(options:=[Option](CodeStyleOptions2.OperatorPlacementWhenWrapping, OperatorPlacementWhenWrappingPreference.BeginningOfLine))