3 writes to _currentDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Workspaces\TestWorkspaceFixture.cs (3)
43_currentDocument = _workspace.Documents.First(d => d.CursorPosition.HasValue); 52_currentDocument = workspace.Documents.Single(); 67_currentDocument = null;
4 references to _currentDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\TestWorkspaceFixture.cs (4)
24public EditorTestHostDocument CurrentDocument => _currentDocument ?? _workspace.Documents.Single(); 44Position = _currentDocument.CursorPosition.Value; 45Code = _currentDocument.GetTextBuffer().CurrentSnapshot.GetText(); 80var hostDocument = _currentDocument ?? (GetWorkspace()).Documents.Single();