Base:
62 references to GetLanguage
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (62)
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests_OptionSets.cs (9)
23=> new OptionsCollection(GetLanguage()) { { CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, CSharpCodeStyleOptions.WhenPossibleWithSuggestionEnforcement } }; 26=> new OptionsCollection(GetLanguage()) { { CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement } }; 29=> new OptionsCollection(GetLanguage()) { { CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, CSharpCodeStyleOptions.NeverWithSilentEnforcement } }; 32=> new OptionsCollection(GetLanguage()) 39=> new OptionsCollection(GetLanguage()) 46=> new OptionsCollection(GetLanguage()) 53=> new OptionsCollection(GetLanguage()) 60=> new OptionsCollection(GetLanguage()) 67=> new OptionsCollection(GetLanguage())
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
30=> new(GetLanguage())
ConvertForToForEach\ConvertForToForEachTests.cs (1)
28=> new OptionsCollection(GetLanguage())
EncapsulateField\EncapsulateFieldTests.cs (4)
28=> new(GetLanguage()) 43options ??= new OptionsCollection(GetLanguage()); 217options: new OptionsCollection(GetLanguage()) 254options: new OptionsCollection(GetLanguage())
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (4)
57=> new(GetLanguage()) 65=> new(GetLanguage()) 73=> new(GetLanguage()) 81=> new(GetLanguage())
IntroduceParameter\IntroduceParameterTests.cs (13)
436await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 480await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 524await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 568await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 630await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 692await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 754await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 799await TestInRegularAndScriptAsync(code, expected, index: 4, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 833await TestInRegularAndScriptAsync(code, expected, index: 2, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 876await TestInRegularAndScriptAsync(code, expected, index: 2, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 950await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 1325await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default); 1360await TestInRegularAndScriptAsync(code, expected, index: 1, options: new OptionsCollection(GetLanguage()), parseOptions: CSharpParseOptions.Default);
IntroduceVariable\IntroduceLocalForExpressionTests.cs (5)
25=> new(GetLanguage()) 33=> new(GetLanguage()) 41=> new(GetLanguage()) 49=> new(GetLanguage()) 388""", options: new OptionsCollection(GetLanguage())
IntroduceVariable\IntroduceVariableTests.cs (3)
35=> new(GetLanguage()) 989""", options: new(GetLanguage()) 4378OptionsCollection optionsCollection = new(GetLanguage())
ReplaceMethodWithProperty\ReplaceMethodWithPropertyTests.cs (5)
34=> new(GetLanguage()) 41=> new(GetLanguage()) 48=> new(GetLanguage()) 55=> new(GetLanguage()) 2185""", options: new OptionsCollection(GetLanguage())
ReplacePropertyWithMethods\ReplacePropertyWithMethodsTests.cs (1)
21=> new(GetLanguage()) { { CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenPossibleWithSuggestionEnforcement } };
UseExpressionBody\Refactoring\UseExpressionBodyFixAllTests.cs (1)
26=> new OptionsCollection(GetLanguage())
UseExpressionBody\Refactoring\UseExpressionBodyForAccessorsRefactoringTests.cs (8)
27=> new OptionsCollection(GetLanguage()) 34=> new OptionsCollection(GetLanguage()) 41=> new OptionsCollection(GetLanguage()) 48=> new OptionsCollection(GetLanguage()) 55=> new OptionsCollection(GetLanguage()) 62=> new OptionsCollection(GetLanguage()) 69=> new OptionsCollection(GetLanguage()) 76=> new OptionsCollection(GetLanguage())
UseExpressionBody\Refactoring\UseExpressionBodyForPropertiesRefactoringTests.cs (7)
28=> new OptionsCollection(GetLanguage()) 35=> new OptionsCollection(GetLanguage()) 42=> new OptionsCollection(GetLanguage()) 49=> new OptionsCollection(GetLanguage()) 56=> new OptionsCollection(GetLanguage()) 63=> new OptionsCollection(GetLanguage()) 70=> new OptionsCollection(GetLanguage())