1 write to _testDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EncapsulateField\EncapsulateFieldTestState.cs (1)
34
_testDocument
= Workspace.Documents.Single(d => d.CursorPosition.HasValue || d.SelectedSpans.Any());
4 references to _testDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
EncapsulateField\EncapsulateFieldTestState.cs (4)
35
TargetDocument = Workspace.CurrentSolution.GetDocument(
_testDocument
.Id);
57
var args = new EncapsulateFieldCommandArgs(
_testDocument
.GetTextView(),
_testDocument
.GetTextBuffer());
71
Assert.Equal(expected,
_testDocument
.GetTextBuffer().CurrentSnapshot.GetText().ToString());