21 references to GetTestDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
ChangeSignature\RemoveParametersTests.cs (1)
380workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList();
CodeActions\PreviewExceptionTests.cs (1)
109textBuffer = workspace.GetTestDocument(document.Id).GetTextBuffer();
EncapsulateField\EncapsulateFieldCommandHandlerTests.cs (1)
207workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList();
ExtractInterface\ExtractInterfaceTests.cs (1)
1453workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id)!.GetTextView()).ToList();
ExtractMethod\ExtractMethodTests.cs (1)
11509workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id)!.GetTextView()).ToList();
Intents\IntentTestsBase.cs (1)
70var documentBuffer = workspace.GetTestDocument(documentChange.Key)!.GetTextBuffer();
Organizing\OrganizeTypeDeclarationTests.cs (1)
1180workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList();
Workspaces\WorkspaceTests_EditorFeatures.cs (3)
1418var originalDocumentId = workspace.GetOpenDocumentIds().Single(id => !workspace.GetTestDocument(id).IsLinkFile); 1419var linkedDocumentId = workspace.GetOpenDocumentIds().Single(id => workspace.GetTestDocument(id).IsLinkFile); 1421workspace.GetTestDocument(originalDocumentId).Update(SourceText.From("class Program2 { }"));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Workspaces\EditorTestWorkspace.cs (3)
137var testDocument = GetTestDocument(document); 159var testDocument = GetTestDocument(documentId); 189var testDocument = GetTestDocument(documentId);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Workspaces\TestWorkspace`1.cs (4)
410var hostDocument = this.GetTestDocument(documentId); 490var testDocument = this.GetTestDocument(documentId); 500var testDocument = this.GetTestDocument(documentId); 530var testDocument = this.GetTestDocument(documentId);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
CodeModel\MockInvisibleEditor.cs (1)
27return _workspace.GetTestDocument(_documentId).GetTextBuffer();
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
CodeModel\Mocks\MockVisualStudioWorkspace.vb (1)
112Return Me._workspace.GetTestDocument(Me._documentId).GetTextBuffer()
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Venus\DocumentService_IntegrationTests.vb (2)
274Dim testDocument = testWorkspace.GetTestDocument(document.Id) 312Dim testDocument = testWorkspace.GetTestDocument(document.Id)