Base:
32 references to GetLanguage
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (32)
AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest_OptionHelpers.cs (8)
19
=> (new OptionKey2(option, this.
GetLanguage
()), value);
31
=> SingleOption(option, codeStyle, language:
GetLanguage
());
37
=> new OptionsCollection(
GetLanguage
()) { { option, enabled, notification } };
40
=> new OptionsCollection(
GetLanguage
()) { { option, codeStyle } };
43
=> new OptionsCollection(
GetLanguage
()) { { option, enabled, notification } };
46
=> new OptionsCollection(
GetLanguage
()) { { option, codeStyle } };
49
=> new OptionsCollection(
GetLanguage
()) { { option, value } };
52
=> new OptionsCollection(
GetLanguage
()) { { option, value } };
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (8)
31
=> new(
GetLanguage
())
48
options ??= new OptionsCollection(
GetLanguage
());
1447
""", options: new OptionsCollection(
GetLanguage
())
1489
""", options: new OptionsCollection(
GetLanguage
())
1553
""", options: new OptionsCollection(
GetLanguage
())
1595
""", options: new OptionsCollection(
GetLanguage
())
1626
""", options: new OptionsCollection(
GetLanguage
())
1880
var options = new OptionsCollection(
GetLanguage
())
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests_ThroughMember.cs (2)
27
=> new OptionsCollection(
GetLanguage
())
43
options ??= new OptionsCollection(
GetLanguage
());
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
34
=> new(
GetLanguage
())
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (2)
72
=> new(options: new OptionsCollection(
GetLanguage
()) { { CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, preferredPlacementOption } });
90
var options = new OptionsCollection(
GetLanguage
())
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (5)
35
=> new(
GetLanguage
())
43
=> new(
GetLanguage
())
51
=> new(
GetLanguage
())
59
=> new(
GetLanguage
())
67
=> new(
GetLanguage
())
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (6)
36
=> new(
GetLanguage
())
44
=> new(
GetLanguage
())
52
=> new(
GetLanguage
())
60
=> new(
GetLanguage
())
68
=> new(
GetLanguage
())
76
=> new(
GetLanguage
())