1 write to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\PreviewTests.cs (1)
57
=>
_oldDocument
= document;
6 references to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
CodeActions\PreviewTests.cs (6)
70
var solution =
_oldDocument
.Project.Solution;
73
solution = solution.AddDocument(DocumentId.CreateNewId(
_oldDocument
.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText);
76
var removedReference =
_oldDocument
.Project.MetadataReferences[
_oldDocument
.Project.MetadataReferences.Count - 1];
78
solution = solution.RemoveMetadataReference(
_oldDocument
.Project.Id, removedReference);
84
solution = solution.WithDocumentSyntaxRoot(
_oldDocument
.Id, CSharpSyntaxTree.ParseText(ChangedDocumentText, cancellationToken: cancellationToken).GetRoot(cancellationToken));