7 references to TestFormattingRuleFactoryServiceFactory
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Formatting\Indentation\CSharpFormatterTestsBase.cs (2)
34
private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(
TestFormattingRuleFactoryServiceFactory
));
114
var factory = (
TestFormattingRuleFactoryServiceFactory
.Factory)workspace.Services.GetService<IHostDependentFormattingRuleFactoryService>();
Formatting\Indentation\SmartIndenterTests.cs (2)
28
.AddParts(typeof(
TestFormattingRuleFactoryServiceFactory
));
3422
var provider = (
TestFormattingRuleFactoryServiceFactory
.Factory)workspace.Services.GetService<IHostDependentFormattingRuleFactoryService>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Formatting\CoreFormatterTestsBase.cs (3)
41
private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(
TestFormattingRuleFactoryServiceFactory
));
96
if (workspace.Services.GetService<IHostDependentFormattingRuleFactoryService>() is
TestFormattingRuleFactoryServiceFactory
.Factory factory && factory.BaseIndentation != 0 && factory.TextSpan.Contains(p.Position))
194
var factory = (
TestFormattingRuleFactoryServiceFactory
.Factory)formattingRuleProvider;