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