11 instantiations of TestTextLoader
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (1)
161loader: new TestTextLoader(source),
Workspaces\LspWorkspaceManagerTests.cs (1)
204var newDocumentInfo = DocumentInfo.Create(newDocumentId, "NewDoc.cs", filePath: newDocumentFilePath, loader: new TestTextLoader("New Doc"));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestDynamicFileInfoProviderThatProducesFiles.cs (1)
35new TestTextLoader(GetDynamicFileText(filePath)),
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\DocumentInfoTests.cs (2)
35var loader = new TestTextLoader("text"); 113SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithTextLoader(value), opt => opt.TextLoader, (TextLoader)new TestTextLoader("text"));
SolutionTests\SolutionTests.cs (6)
900var loader = new TestTextLoader("new text"); 922var loader = new TestTextLoader("new text"); 944var loader = new TestTextLoader("new text"); 1113var textLoaderA = new TestTextLoader("class A {}", SourceHashAlgorithm.Sha1); 1718var loader = new TestTextLoader(checksumAlgorithm: SourceHashAlgorithm.Sha1); 4348static (s, documentId) => s.WithDocumentTextLoader(documentId, new TestTextLoader(Guid.NewGuid().ToString()), PreservationMode.PreserveValue), documentId).GetReference();
6 references to TestTextLoader
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\DocumentInfoTests.cs (1)
35var loader = new TestTextLoader("text");
SolutionTests\SolutionTests.cs (5)
900var loader = new TestTextLoader("new text"); 922var loader = new TestTextLoader("new text"); 944var loader = new TestTextLoader("new text"); 1113var textLoaderA = new TestTextLoader("class A {}", SourceHashAlgorithm.Sha1); 1718var loader = new TestTextLoader(checksumAlgorithm: SourceHashAlgorithm.Sha1);