1 write to Workspace
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
ChangeSignature\ChangeSignatureTestState.cs (1)
59
Workspace
= workspace;
11 references to Workspace
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
ChangeSignature\RemoveParametersTests.cs (2)
256
foreach (var updatedDocument in testState.
Workspace
.Documents.Select(d => result.UpdatedSolution.GetDocument(d.Id)))
338
foreach (var updatedDocument in testState.
Workspace
.Documents.Select(d => result.UpdatedSolution.GetDocument(d.Id)))
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (5)
ChangeSignature\ChangeSignatureTestState.cs (5)
60
_testDocument =
Workspace
.Documents.SingleOrDefault(d => d.CursorPosition.HasValue);
67
InvocationDocument =
Workspace
.CurrentSolution.GetDocument(_testDocument.Id);
81
var context = await ChangeSignatureService.GetChangeSignatureContextAsync(InvocationDocument, _testDocument.CursorPosition.Value, restrictToDeclarations: false,
Workspace
.GlobalOptions.CreateProvider(), CancellationToken.None).ConfigureAwait(false);
88
var context = await ChangeSignatureService.GetChangeSignatureContextAsync(InvocationDocument, _testDocument.CursorPosition.Value, restrictToDeclarations: false,
Workspace
.GlobalOptions.CreateProvider(), CancellationToken.None);
99
Workspace
?.Dispose();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
ChangeSignature\ReorderParameters.MultiFile.vb (4)
56
Dim history = testState.
Workspace
.GetService(Of ITextUndoHistoryRegistry)().RegisterHistory(testState.
Workspace
.Documents.First().GetTextBuffer())
109
Dim history = testState.
Workspace
.GetService(Of ITextUndoHistoryRegistry)().RegisterHistory(testState.
Workspace
.Documents.First().GetTextBuffer())