11 references to TestFormattingRuleFactoryServiceFactory
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Formatting\Indentation\CSharpFormatterTestsBase.cs (2)
38
private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(
TestFormattingRuleFactoryServiceFactory
));
116
var factory = (
TestFormattingRuleFactoryServiceFactory
.Factory)workspace.Services.GetService<IHostDependentFormattingRuleFactoryService>();
Formatting\Indentation\SmartIndenterTests.cs (2)
30
.AddParts(typeof(
TestFormattingRuleFactoryServiceFactory
));
3487
var provider = (
TestFormattingRuleFactoryServiceFactory
.Factory)workspace.Services.GetService<IHostDependentFormattingRuleFactoryService>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Formatting\CoreFormatterTestsBase.cs (3)
43
private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(
TestFormattingRuleFactoryServiceFactory
));
98
if (workspace.Services.GetService<IHostDependentFormattingRuleFactoryService>() is
TestFormattingRuleFactoryServiceFactory
.Factory factory && factory.BaseIndentation != 0 && factory.TextSpan.Contains(p.Position))
196
var factory = (
TestFormattingRuleFactoryServiceFactory
.Factory)formattingRuleProvider;
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
Formatting\Indentation\SmartIndenterTests.vb (2)
21
AddParts(GetType(
TestFormattingRuleFactoryServiceFactory
))
2989
TestFormattingRuleFactoryServiceFactory
.Factory)
Formatting\VisualBasicFormatterTestBase.vb (2)
25
GetType(
TestFormattingRuleFactoryServiceFactory
))
56
Dim factory = CType(formattingRuleProvider,
TestFormattingRuleFactoryServiceFactory
.Factory)