Base:
30 references to TryApplyChanges
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (18)
CodeActions\ApplyChangesOperationTests.cs (1)
257
Assert.True(workspace.
TryApplyChanges
(changedSolution));
Completion\CompletionServiceTests.cs (1)
135
Assert.True(workspace.
TryApplyChanges
(workspace.CurrentSolution.WithOptions(
Formatting\CodeCleanupTests.cs (1)
806
workspace.
TryApplyChanges
(project.Solution);
Workspaces\WorkspaceTests_EditorFeatures.cs (15)
223
workspace.
TryApplyChanges
(workspace.CurrentSolution);
741
workspace.
TryApplyChanges
(newSolution);
763
workspace.
TryApplyChanges
(newSolution);
784
workspace.
TryApplyChanges
(newSolution);
1115
workspace.
TryApplyChanges
(newSolution);
1148
workspace.
TryApplyChanges
(newSolution);
1241
workspace.
TryApplyChanges
(newSolution);
1251
workspace.
TryApplyChanges
(newSolution);
1277
workspace.
TryApplyChanges
(newSolution);
1287
workspace.
TryApplyChanges
(newSolution);
1310
workspace.
TryApplyChanges
(doc.Project.Solution);
1317
workspace.
TryApplyChanges
(project.RemoveAdditionalDocument(doc.Id).Solution);
1338
workspace.
TryApplyChanges
(doc.Project.Solution);
1345
workspace.
TryApplyChanges
(project.RemoveAnalyzerConfigDocument(doc.Id).Solution);
1475
Assert.True(workspace1.
TryApplyChanges
(newSolution));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeFixes\CodeFixServiceTests.cs (1)
1069
var appliedChanges = workspace.
TryApplyChanges
(sourceDocument.Project.Solution);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
749
workspace.
TryApplyChanges
(project.Solution);
859
Assert.True(workspace.
TryApplyChanges
(workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(new TestGeneratorReference(generator)).Solution));
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
89
workspace.
TryApplyChanges
(newSolution);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
CodeModel\Mocks\MockVisualStudioWorkspace.vb (2)
50
Assert.True(_workspace.
TryApplyChanges
(_workspace.CurrentSolution.WithDocumentText(documentId, newText)))
60
Assert.True(_workspace.
TryApplyChanges
(_workspace.CurrentSolution.RemoveDocument(documentId)))
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
51
workspace.
TryApplyChanges
(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
97
workspace.
TryApplyChanges
(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
229
workspace.
TryApplyChanges
(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))
Venus\DocumentService_IntegrationTests.vb (3)
198
Assert.True(workspace.
TryApplyChanges
(newDocument.Project.Solution))
205
Assert.Throws(Of NotSupportedException)(Sub() workspace.
TryApplyChanges
(newDocument.Project.Solution))
223
workspace.
TryApplyChanges
(workspace.CurrentSolution.WithAnalyzerReferences({analyzerReference}))