173 instantiations of AdhocWorkspace
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (1)
49var solution = new AdhocWorkspace().CurrentSolution
ProjectOperationBenchmarks.cs (1)
56_workspace = new AdhocWorkspace();
RenameBenchmarks.cs (1)
43_solution = new AdhocWorkspace().CurrentSolution
SwitchStatementBenchmarks.cs (1)
65using var workspace = new AdhocWorkspace();
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
55return new AdhocWorkspace()
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
55return new AdhocWorkspace()
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
88return new AdhocWorkspace();
DiagnosticVerifier.cs (1)
160Solution = Solution ?? new AdhocWorkspace().CurrentSolution;
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
143return new AdhocWorkspace(host);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
151var solution = new AdhocWorkspace()
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
151var solution = new AdhocWorkspace()
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
320var project = new AdhocWorkspace().CurrentSolution
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
320var project = new AdhocWorkspace().CurrentSolution
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
43var workspace = new AdhocWorkspace(s_composition.GetHostServices());
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
3477var workspace = new AdhocWorkspace(hostServices);
Completion\CompletionServiceTests.cs (2)
35var workspace = new AdhocWorkspace(); 168var workspace = new AdhocWorkspace();
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
ExtractMethod\ExtractMethodTests.cs (1)
11213var solution = new AdhocWorkspace().CurrentSolution;
Formatting\FormattingEngineTests.cs (1)
2546using var workspace = new AdhocWorkspace();
Formatting\RazorLineFormattingOptionsTests.cs (1)
41using var workspace = new AdhocWorkspace(hostServices);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (17)
CodeGeneration\AddAttributesTests.cs (1)
26var ws = new AdhocWorkspace();
CodeGeneration\AddImportsTests.cs (2)
30var ws = new AdhocWorkspace(); 776var ws = new AdhocWorkspace();
CodeGeneration\SymbolEditorTests.cs (2)
29=> _g ??= SyntaxGenerator.GetGenerator(new AdhocWorkspace(), LanguageNames.CSharp); 33var ws = new AdhocWorkspace();
CodeGeneration\SyntaxGeneratorTests.cs (1)
36=> _workspace ??= new AdhocWorkspace();
Formatting\CSharpFormattingTestBase.cs (1)
20=> _ws ??= new AdhocWorkspace();
Formatting\FormattingElasticTriviaTests.cs (3)
88using var workspace = new AdhocWorkspace(); 108var workspace = new AdhocWorkspace(); 184using var workspace = new AdhocWorkspace();
Formatting\FormattingMultipleSpanTests.cs (1)
162using var workspace = new AdhocWorkspace();
Formatting\FormattingTests.cs (2)
4654using var workspace = new AdhocWorkspace(); 8241Formatter.Format(block, new AdhocWorkspace().Services.SolutionServices, CSharpSyntaxFormattingOptions.Default, CancellationToken.None);
Formatting\FormattingTreeEditTests.cs (1)
23var ws = new AdhocWorkspace();
Formatting\FormattingTriviaTests.cs (2)
1741using var workspace = new AdhocWorkspace(); 1791using var workspace = new AdhocWorkspace();
OrganizeImports\OrganizeUsingsTests.cs (1)
27using var workspace = new AdhocWorkspace();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Formatting\CoreFormatterTestsBase.cs (1)
287using var workspace = new AdhocWorkspace();
Rename\RenamerTests.cs (3)
40using var workspace = new AdhocWorkspace(); 175using var workspace = new AdhocWorkspace(); 214using var workspace = new AdhocWorkspace();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (13)
CodeGeneration\AbstractCodeGenerationTests.cs (1)
77using var workspace = new AdhocWorkspace();
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
42=> new AdhocWorkspace(s_featuresCompositionWithMockDiagnosticUpdateSourceRegistrationService.AddParts(additionalParts).GetHostServices());
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (2)
29using var workspace = new AdhocWorkspace(); 53using var workspace = new AdhocWorkspace();
Preview\PreviewWorkspaceTests.cs (1)
45using var custom = new AdhocWorkspace();
TextEditor\OpenDocumentTests.cs (1)
31using var workspace = new AdhocWorkspace(hostServices);
Workspaces\DefaultMefHostTests.cs (1)
24var ws = new AdhocWorkspace();
Workspaces\TextFactoryTests.cs (6)
26using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 39using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 52using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 65using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 81using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 101using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices());
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Simplification\ParameterSimplificationTests.vb (1)
17Using workspace = New AdhocWorkspace()
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
115using var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
623var workspace = new AdhocWorkspace(_workspace.Services.HostServices);
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
CaseCorrection\VisualBasicCaseCorrectionTestBase.vb (1)
15Using workspace = New AdhocWorkspace()
CodeGeneration\AddImportsTests.vb (1)
31Dim ws As AdhocWorkspace = New AdhocWorkspace()
CodeGeneration\SyntaxGeneratorTests.vb (1)
30_g = SyntaxGenerator.GetGenerator(New AdhocWorkspace(), LanguageNames.VisualBasic)
Formatting\FormattingTests.vb (4)
2988Using workspace = New AdhocWorkspace() 3787Using workspace = New AdhocWorkspace() 4197Dim solution = New AdhocWorkspace().CurrentSolution 4591Using workspace = New AdhocWorkspace()
Formatting\VisualBasicFormattingTestBase.vb (2)
25_ws = New AdhocWorkspace() 55Using workspace = New AdhocWorkspace()
OrganizeImports\OrganizeImportsTests.vb (2)
26Using workspace = New AdhocWorkspace() 47Using workspace = New AdhocWorkspace()
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\CommandLineProject.cs (1)
27workspace ??= new AdhocWorkspace();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
42using var workspace = new AdhocWorkspace();
Microsoft.CodeAnalysis.Workspaces.UnitTests (88)
CodeCleanup\AddMissingTokensTests.cs (1)
2728var solution = new AdhocWorkspace().CurrentSolution;
CodeCleanup\CodeCleanupTests.cs (1)
416var solution = new AdhocWorkspace().CurrentSolution;
CodeCleanup\FixIncorrectTokenTests.cs (1)
753var solution = new AdhocWorkspace().CurrentSolution;
CodeCleanup\NormalizeModifiersOrOperatorsTests.cs (1)
1029var solution = new AdhocWorkspace().CurrentSolution;
CodeCleanup\ReduceTokenTests.cs (1)
2016var solution = new AdhocWorkspace().CurrentSolution;
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (1)
1452var solution = new AdhocWorkspace().CurrentSolution;
CommandLineProject\CommandLineProjectTests.cs (2)
39var ws = new AdhocWorkspace(new MefHostServices(new ContainerConfiguration().CreateContainer())); // no services 48var ws = new AdhocWorkspace();
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
26using var ws = new AdhocWorkspace(); 56var ws = new AdhocWorkspace();
Editing\SyntaxEditorTests.cs (1)
23=> _emptyWorkspace ??= new AdhocWorkspace();
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
80var workspace = new AdhocWorkspace(composition.GetHostServices());
FindReferencesTests.cs (1)
25=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
Formatter\FormatterTests.cs (1)
112using var workspace = new AdhocWorkspace();
FormattingTests.cs (3)
35using var workspace = new AdhocWorkspace(); 63using var workspace = new AdhocWorkspace(); 84using var workspace = new AdhocWorkspace();
GeneratedCodeRecognitionTests.cs (1)
101return new AdhocWorkspace().CurrentSolution
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
19using var workspace = new AdhocWorkspace();
Remote\ServiceDescriptorTests.cs (1)
229using var workspace = new AdhocWorkspace();
SemanticModelReuse\SemanticModelReuseTests.cs (1)
25var solution = new AdhocWorkspace().CurrentSolution;
Simplifier\SimplifierTests.cs (2)
27var workspace = new AdhocWorkspace(); 75using var workspace = new AdhocWorkspace();
SolutionTests\ProjectDependencyGraphTests.cs (1)
738=> new AdhocWorkspace().CurrentSolution;
SolutionTests\SolutionTestHelpers.cs (1)
17=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(testHost).GetHostServices());
SolutionTests\SolutionTests.cs (8)
3904var workspace = new AdhocWorkspace(); 3958var solution = new AdhocWorkspace().CurrentSolution 3989var ws = new AdhocWorkspace(); 4006var workspace = new AdhocWorkspace(); 4015var workspace = new AdhocWorkspace(); 4043var workspace = new AdhocWorkspace(); 4216var workspace = new AdhocWorkspace(); 5320var workspace = new AdhocWorkspace();
SymbolKeyTests.cs (2)
863var workspace = new AdhocWorkspace(); 910var workspace = new AdhocWorkspace();
SyntaxNodeTests.cs (1)
87var sol = new AdhocWorkspace().CurrentSolution
SyntaxReferenceTests.cs (1)
23=> new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
UtilityTest\SourceTextSerializationTests.cs (1)
24using var workspace = new AdhocWorkspace();
WorkspaceServiceTests\GlobalOptionServiceTests.cs (14)
32using var workspace = new AdhocWorkspace(); 55using var workspace1 = new AdhocWorkspace(); 56using var workspace2 = new AdhocWorkspace(); 92using var workspace1 = new AdhocWorkspace(); 93using var workspace2 = new AdhocWorkspace(); 146using var workspace = new AdhocWorkspace(); 157using var workspace = new AdhocWorkspace(); 167using var workspace = new AdhocWorkspace(); 210using var workspace = new AdhocWorkspace(); 223using var workspace = new AdhocWorkspace(); 242using var workspace = new AdhocWorkspace(); 258using var workspace = new AdhocWorkspace(); 272using var workspace = new AdhocWorkspace(); 288using var workspace = new AdhocWorkspace();
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (9)
33using var workspace = new AdhocWorkspace(); 53using var workspace = new AdhocWorkspace(); 90using var workspace = new AdhocWorkspace(); 108using var workspace = new AdhocWorkspace(); 150using var workspace = new AdhocWorkspace(); 180using var workspace = new AdhocWorkspace(); 205using var workspace = new AdhocWorkspace(); 240using var workspace = new AdhocWorkspace(); 275using var workspace = new AdhocWorkspace();
WorkspaceTests\AdhocWorkspaceTests.cs (20)
35using var ws = new AdhocWorkspace(); 47using var ws = new AdhocWorkspace(); 57using var ws = new AdhocWorkspace(); 69using var ws = new AdhocWorkspace(); 82using var ws = new AdhocWorkspace(); 126using var ws = new AdhocWorkspace(); 149using var ws = new AdhocWorkspace(); 195using var ws = new AdhocWorkspace(); 224using var ws = new AdhocWorkspace(); 258using var ws = new AdhocWorkspace(); 297using var ws = new AdhocWorkspace(); 331using var ws = new AdhocWorkspace(); 376using var ws = new AdhocWorkspace(); 413using var ws = new AdhocWorkspace(); 444using var ws = new AdhocWorkspace(); 479using var ws = new AdhocWorkspace(); 511using var ws = new AdhocWorkspace(); 542using var ws = new AdhocWorkspace(); 573using var ws = new AdhocWorkspace(); 585static composition => new AdhocWorkspace(composition.GetHostServices()),
WorkspaceTests\WorkspaceReferenceTests.cs (5)
20using var ws = new AdhocWorkspace(); 49using var ws = new AdhocWorkspace(); 89using var ws = new AdhocWorkspace(); 129using var ws = new AdhocWorkspace(); 173using var ws = new AdhocWorkspace();
WorkspaceTests\WorkspaceTests.cs (2)
189using var workspace1 = new AdhocWorkspace(); 197using var workspace2 = new AdhocWorkspace();
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
78return new AdhocWorkspace()
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
78return new AdhocWorkspace()
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
78return new AdhocWorkspace()
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
78return new AdhocWorkspace()
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
78return new AdhocWorkspace()
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
189trainProgramCSFileContent = Formatter.Format(syntaxNode, new AdhocWorkspace()).ToFullString();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
20=> new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.AddParts(additionalParts).GetHostServices(), WorkspaceKind.Host);
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
28var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices(), WorkspaceKind.Host);
PersistentStorage\AbstractPersistentStorageTests.cs (2)
840var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices()); 982var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices());
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
28=> new(s_composition.GetHostServices());
Remote\SnapshotSerializationTests.cs (1)
46=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(TestHost.OutOfProcess).GetHostServices());
Services\SolutionServiceTests.cs (2)
81using var workspace = new AdhocWorkspace(); 110using var workspace = new AdhocWorkspace();
151 references to AdhocWorkspace
IdeCoreBenchmarks (1)
SwitchStatementBenchmarks.cs (1)
65using var workspace = new AdhocWorkspace();
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
139private static AdhocWorkspace CreateWorkspace()
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
43var workspace = new AdhocWorkspace(s_composition.GetHostServices());
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
3477var workspace = new AdhocWorkspace(hostServices);
Completion\CompletionServiceTests.cs (2)
35var workspace = new AdhocWorkspace(); 168var workspace = new AdhocWorkspace();
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
Formatting\FormattingEngineTests.cs (1)
2546using var workspace = new AdhocWorkspace();
Formatting\RazorLineFormattingOptionsTests.cs (1)
41using var workspace = new AdhocWorkspace(hostServices);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (13)
CodeGeneration\AddAttributesTests.cs (1)
26var ws = new AdhocWorkspace();
CodeGeneration\AddImportsTests.cs (2)
30var ws = new AdhocWorkspace(); 776var ws = new AdhocWorkspace();
CodeGeneration\SymbolEditorTests.cs (1)
33var ws = new AdhocWorkspace();
Formatting\FormattingElasticTriviaTests.cs (3)
88using var workspace = new AdhocWorkspace(); 108var workspace = new AdhocWorkspace(); 184using var workspace = new AdhocWorkspace();
Formatting\FormattingMultipleSpanTests.cs (1)
162using var workspace = new AdhocWorkspace();
Formatting\FormattingTests.cs (1)
4654using var workspace = new AdhocWorkspace();
Formatting\FormattingTreeEditTests.cs (1)
23var ws = new AdhocWorkspace();
Formatting\FormattingTriviaTests.cs (2)
1741using var workspace = new AdhocWorkspace(); 1791using var workspace = new AdhocWorkspace();
OrganizeImports\OrganizeUsingsTests.cs (1)
27using var workspace = new AdhocWorkspace();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Formatting\CoreFormatterTestsBase.cs (2)
284/// <remarks>uses an <see cref="AdhocWorkspace"/> for formatting context, since the <paramref name="node"/> is not associated with a <see cref="SyntaxTree"/> </remarks> 287using var workspace = new AdhocWorkspace();
Rename\RenamerTests.cs (3)
40using var workspace = new AdhocWorkspace(); 175using var workspace = new AdhocWorkspace(); 214using var workspace = new AdhocWorkspace();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (31)
CodeGeneration\AbstractCodeGenerationTests.cs (2)
25AdhocWorkspace workspace, 77using var workspace = new AdhocWorkspace();
Diagnostics\DiagnosticAnalyzerServiceTests.cs (18)
41private static AdhocWorkspace CreateWorkspace(Type[] additionalParts = null) 58using var workspace = CreateWorkspace(); 79using var workspace = CreateWorkspace(); 97using var workspace = CreateWorkspace(); 112using var workspace = CreateWorkspace(); 128using var workspace = CreateWorkspace(); 147using var workspace = CreateWorkspace(); 216AdhocWorkspace workspace, 242using var workspace = CreateWorkspace(); 288using var workspace = CreateWorkspace(); 327using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new NamedTypeAnalyzer(DiagnosticSeverity.Hidden)); 338using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new NamedTypeAnalyzer(DiagnosticSeverity.Hidden)); 349using var workspace = CreateWorkspaceWithProjectAndAnalyzer(new NamedTypeAnalyzer(DiagnosticSeverity.Hidden)); 367private static AdhocWorkspace CreateWorkspaceWithProjectAndAnalyzer(DiagnosticAnalyzer analyzer) 369var workspace = CreateWorkspace(); 399private static async Task TestFullSolutionAnalysisForProjectAsync(AdhocWorkspace workspace, Project project, bool expectAnalyzerExecuted) 420using var workspace = CreateWorkspace(); 881private static Document GetDocumentFromIncompleteProject(AdhocWorkspace workspace)
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (2)
29using var workspace = new AdhocWorkspace(); 53using var workspace = new AdhocWorkspace();
Preview\PreviewWorkspaceTests.cs (1)
45using var custom = new AdhocWorkspace();
TextEditor\OpenDocumentTests.cs (1)
31using var workspace = new AdhocWorkspace(hostServices);
Workspaces\DefaultMefHostTests.cs (1)
24var ws = new AdhocWorkspace();
Workspaces\TextFactoryTests.cs (6)
26using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 39using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 52using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 65using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 81using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 101using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices());
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueTestVerifier.cs (2)
115using var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices()); 434private void CreateProjects(EditScriptDescription[] editScripts, AdhocWorkspace workspace, TargetFramework targetFramework, out Project oldProject, out Project newProject)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
623var workspace = new AdhocWorkspace(_workspace.Services.HostServices);
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.vb (1)
31Dim ws As AdhocWorkspace = New AdhocWorkspace()
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\AdhocWorkspace.cs (1)
21public AdhocWorkspace()
Workspace\WorkspaceKind.cs (1)
21/// <see cref="AdhocWorkspace"/> kind.
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
42using var workspace = new AdhocWorkspace();
Microsoft.CodeAnalysis.Workspaces.UnitTests (76)
CommandLineProject\CommandLineProjectTests.cs (2)
39var ws = new AdhocWorkspace(new MefHostServices(new ContainerConfiguration().CreateContainer())); // no services 48var ws = new AdhocWorkspace();
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
26using var ws = new AdhocWorkspace(); 56var ws = new AdhocWorkspace();
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
80var workspace = new AdhocWorkspace(composition.GetHostServices());
Formatter\FormatterTests.cs (3)
49using var workspace = new AdhocWorkspace(hostServices); 67using var workspace = new AdhocWorkspace(hostServices); 112using var workspace = new AdhocWorkspace();
FormattingTests.cs (3)
35using var workspace = new AdhocWorkspace(); 63using var workspace = new AdhocWorkspace(); 84using var workspace = new AdhocWorkspace();
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
19using var workspace = new AdhocWorkspace();
Remote\ServiceDescriptorTests.cs (1)
229using var workspace = new AdhocWorkspace();
Simplifier\SimplifierTests.cs (2)
27var workspace = new AdhocWorkspace(); 75using var workspace = new AdhocWorkspace();
SolutionTests\SolutionTests.cs (9)
3841var ws = new AdhocWorkspace(hostServices, ServiceLayer.Host); 3845var ws2 = new AdhocWorkspace(hostServices, "Quasimodo"); 3904var workspace = new AdhocWorkspace(); 3989var ws = new AdhocWorkspace(); 4006var workspace = new AdhocWorkspace(); 4015var workspace = new AdhocWorkspace(); 4043var workspace = new AdhocWorkspace(); 4216var workspace = new AdhocWorkspace(); 5320var workspace = new AdhocWorkspace();
SymbolKeyTests.cs (2)
863var workspace = new AdhocWorkspace(); 910var workspace = new AdhocWorkspace();
UtilityTest\SourceTextSerializationTests.cs (1)
24using var workspace = new AdhocWorkspace();
WorkspaceServiceTests\GlobalOptionServiceTests.cs (14)
32using var workspace = new AdhocWorkspace(); 55using var workspace1 = new AdhocWorkspace(); 56using var workspace2 = new AdhocWorkspace(); 92using var workspace1 = new AdhocWorkspace(); 93using var workspace2 = new AdhocWorkspace(); 146using var workspace = new AdhocWorkspace(); 157using var workspace = new AdhocWorkspace(); 167using var workspace = new AdhocWorkspace(); 210using var workspace = new AdhocWorkspace(); 223using var workspace = new AdhocWorkspace(); 242using var workspace = new AdhocWorkspace(); 258using var workspace = new AdhocWorkspace(); 272using var workspace = new AdhocWorkspace(); 288using var workspace = new AdhocWorkspace();
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (9)
33using var workspace = new AdhocWorkspace(); 53using var workspace = new AdhocWorkspace(); 90using var workspace = new AdhocWorkspace(); 108using var workspace = new AdhocWorkspace(); 150using var workspace = new AdhocWorkspace(); 180using var workspace = new AdhocWorkspace(); 205using var workspace = new AdhocWorkspace(); 240using var workspace = new AdhocWorkspace(); 275using var workspace = new AdhocWorkspace();
WorkspaceTests\AdhocWorkspaceTests.cs (19)
35using var ws = new AdhocWorkspace(); 47using var ws = new AdhocWorkspace(); 57using var ws = new AdhocWorkspace(); 69using var ws = new AdhocWorkspace(); 82using var ws = new AdhocWorkspace(); 126using var ws = new AdhocWorkspace(); 149using var ws = new AdhocWorkspace(); 195using var ws = new AdhocWorkspace(); 224using var ws = new AdhocWorkspace(); 258using var ws = new AdhocWorkspace(); 297using var ws = new AdhocWorkspace(); 331using var ws = new AdhocWorkspace(); 376using var ws = new AdhocWorkspace(); 413using var ws = new AdhocWorkspace(); 444using var ws = new AdhocWorkspace(); 479using var ws = new AdhocWorkspace(); 511using var ws = new AdhocWorkspace(); 542using var ws = new AdhocWorkspace(); 573using var ws = new AdhocWorkspace();
WorkspaceTests\WorkspaceReferenceTests.cs (5)
20using var ws = new AdhocWorkspace(); 49using var ws = new AdhocWorkspace(); 89using var ws = new AdhocWorkspace(); 129using var ws = new AdhocWorkspace(); 173using var ws = new AdhocWorkspace();
WorkspaceTests\WorkspaceTests.cs (2)
189using var workspace1 = new AdhocWorkspace(); 197using var workspace2 = new AdhocWorkspace();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
28var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices(), WorkspaceKind.Host);
PersistentStorage\AbstractPersistentStorageTests.cs (2)
840var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices()); 982var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices());
Roslyn.VisualStudio.Next.UnitTests (7)
Remote\RemoteHostClientServiceFactoryTests.cs (3)
27private static AdhocWorkspace CreateWorkspace() 33using var workspace = CreateWorkspace(); 72using var workspace = CreateWorkspace();
Remote\SerializationValidator.cs (1)
116var workspace = new AdhocWorkspace(Services.HostServices);
Remote\SnapshotSerializationTests.cs (1)
702var original = typeof(AdhocWorkspace).Assembly.Location;
Services\SolutionServiceTests.cs (2)
81using var workspace = new AdhocWorkspace(); 110using var workspace = new AdhocWorkspace();