1 type derived from TestHostDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\EditorTestHostDocument.cs (1)
21public class EditorTestHostDocument : TestHostDocument
2 instantiations of TestHostDocument
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace.cs (2)
44=> new(text, displayName, sourceCodeKind, id, filePath, folders, exportProvider, documentServiceProvider); 59=> new(exportProvider, languageServiceProvider, code, name, filePath, cursorPosition, spans, sourceCodeKind, folders, isLinkFile, documentServiceProvider, generator);
44 references to TestHostDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (8)
ExtractInterface\ExtractInterfaceTestState.cs (1)
26private readonly TestHostDocument _testDocument;
GoToAdjacentMember\AbstractGoToAdjacentMemberTests.cs (2)
37var hostDocument = workspace.DocumentWithCursor; 61var hostDocument = workspace.DocumentWithCursor;
Structure\AbstractSyntaxStructureProviderTests.cs (2)
45var hostDocument = workspace.Documents.Single(); 66var hostDocument = workspace.Documents.Single();
Workspaces\EditorTestHostDocument.cs (3)
117Contract.ThrowIfNull(ExportProvider, $"Can only create text view for {nameof(TestHostDocument)} created with {nameof(ExportProvider)}"); 118WpfTestRunner.RequireWpfFact($"Creates an {nameof(IWpfTextView)} through {nameof(TestHostDocument)}.{nameof(GetTextView)}"); 148Contract.ThrowIfNull(LanguageServiceProvider, $"To get a text buffer for a {nameof(TestHostDocument)}, it must have been parented in a project.");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Diagnostics\DiagnosticDataTests.cs (1)
182var hostDocument = workspace.Documents.Single();
InheritanceMargin\InheritanceMarginTests.cs (6)
58var testHostDocument = testWorkspace.Documents[0]; 87var testHostDocument = testWorkspace.Documents[0]; 93TestHostDocument testHostDocument, 211var testHostDocument1 = testWorkspace.Documents.Single(doc => doc.Project.AssemblyName.Equals("Assembly1")); 212var testHostDocument2 = testWorkspace.Documents.Single(doc => doc.Project.AssemblyName.Equals("Assembly2")); 324foreach (var testHostDocument in testWorkspace.Documents)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
310var testDocument = Workspace.Documents.Single(d => d.FilePath == "SourceDocument");
StackTraceExplorer\StackTraceExplorerTests.cs (1)
45var cursorDoc = workspace.Documents.Single();
Structure\BlockStructureServiceTests.cs (1)
115var hostDocument = workspace.Documents.First();
ValueTracking\AbstractBaseValueTrackingTests.cs (1)
28var cursorDocument = testWorkspace.DocumentWithCursor;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
28var caretDocument = workspace.Documents.Single(d => d.CursorPosition.HasValue);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (20)
Workspaces\TestHostDocument.cs (2)
176private readonly TestHostDocument _hostDocument; 179internal TestDocumentLoader(TestHostDocument hostDocument, string text)
Workspaces\TestHostProject.cs (8)
14public class TestHostProject : TestHostProject<TestHostDocument> 43TestHostDocument document, 64IList<TestHostDocument> documents, 65IList<TestHostDocument> additionalDocuments = null, 66IList<TestHostDocument> analyzerConfigDocuments = null, 95IEnumerable<TestHostDocument> documents = null, 96IEnumerable<TestHostDocument> additionalDocuments = null, 97IEnumerable<TestHostDocument> analyzerConfigDocuments = null,
Workspaces\TestHostProject`1.cs (1)
20where TDocument : TestHostDocument
Workspaces\TestHostSolution.cs (1)
12: TestHostSolution<TestHostDocument>(projects)
Workspaces\TestHostSolution`1.cs (1)
12where TDocument : TestHostDocument
Workspaces\TestWorkspace.cs (6)
15public partial class TestWorkspace : TestWorkspace<TestHostDocument, TestHostProject, TestHostSolution> 35private protected override TestHostDocument CreateDocument( 46private protected override TestHostDocument CreateDocument( 68IList<TestHostDocument> documents, 69IList<TestHostDocument>? additionalDocuments = null, 70IList<TestHostDocument>? analyzerConfigDocuments = null,
Workspaces\TestWorkspace`1.cs (1)
38where TDocument : TestHostDocument
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DesignerAttribute\DesignerAttributeServiceTests.cs (1)
119var hostDocument = workspace.Documents.First();
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Progression\ProgressionTestState.vb (2)
36Dim hostDocument As TestHostDocument = Workspace.Documents.Single(Function(d) d.CursorPosition.HasValue) 78Dim hostDocument As TestHostDocument = Workspace.Documents.Single(Function(d) d.CursorPosition.HasValue)
Venus\DocumentServiceTests.vb (1)
299Private Shared Function GetNamedSpan(document As TestHostDocument, Optional spanName As String = "Document") As TextSpan