1 write to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\Preview\PreviewTests.cs (1)
62
=>
_oldDocument
= document;
6 references to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
CodeActions\Preview\PreviewTests.cs (6)
74
var solution =
_oldDocument
.Project.Solution;
77
solution = solution.AddDocument(DocumentId.CreateNewId(
_oldDocument
.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText);
80
var removedReference =
_oldDocument
.Project.MetadataReferences[
_oldDocument
.Project.MetadataReferences.Count - 1];
82
solution = solution.RemoveMetadataReference(
_oldDocument
.Project.Id, removedReference);
88
solution = solution.WithDocumentSyntaxRoot(
_oldDocument
.Id, CSharpSyntaxTree.ParseText(ChangedDocumentText, cancellationToken: cancellationToken).GetRoot(cancellationToken));