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());
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)));
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()));
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)));
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));
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(
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));
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));
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));
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)));
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));
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\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\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\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));
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()));
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));