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