1 write to InvocationDocument
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
ChangeSignature\ChangeSignatureTestState.cs (1)
67
InvocationDocument
= Workspace.CurrentSolution.GetDocument(_testDocument.Id);
8 references to InvocationDocument
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (8)
ChangeSignature\AbstractChangeSignatureTests.cs (4)
129
var updatedInvocationDocument = result.UpdatedSolution.GetDocument(testState.
InvocationDocument
.Id);
136
var diagnostics = (await testState.
InvocationDocument
.GetSemanticModelAsync()).GetDiagnostics();
140
Assert.True(false, CreateDiagnosticsString(diagnostics, updatedSignature, testState.
InvocationDocument
, totalParameters, (await testState.
InvocationDocument
.GetTextAsync()).ToString()));
ChangeSignature\ChangeSignatureTestState.cs (4)
68
ChangeSignatureService =
InvocationDocument
.GetLanguageService<AbstractChangeSignatureService>();
75
return (TestChangeSignatureOptionsService)
InvocationDocument
.Project.Solution.Services.GetRequiredService<IChangeSignatureOptionsService>();
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);