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); 753workspace.TryApplyChanges(newSolution); 775workspace.TryApplyChanges(newSolution); 796workspace.TryApplyChanges(newSolution); 1127workspace.TryApplyChanges(newSolution); 1160workspace.TryApplyChanges(newSolution); 1253workspace.TryApplyChanges(newSolution); 1263workspace.TryApplyChanges(newSolution); 1289workspace.TryApplyChanges(newSolution); 1299workspace.TryApplyChanges(newSolution); 1322workspace.TryApplyChanges(doc.Project.Solution); 1329workspace.TryApplyChanges(project.RemoveAdditionalDocument(doc.Id).Solution); 1350workspace.TryApplyChanges(doc.Project.Solution); 1357workspace.TryApplyChanges(project.RemoveAnalyzerConfigDocument(doc.Id).Solution); 1487Assert.True(workspace1.TryApplyChanges(newSolution));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeFixes\CodeFixServiceTests.cs (1)
1067var appliedChanges = workspace.TryApplyChanges(sourceDocument.Project.Solution);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
737workspace.TryApplyChanges(project.Solution); 847Assert.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}))