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