10 references to TestTextLoader
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
MiscellaneousFiles\LspMiscellaneousFilesWorkspaceTests.cs (1)
32loader: new TestTextLoader(content)));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestDynamicFileInfoProviderThatProducesFiles.cs (1)
35new TestTextLoader(GetDynamicFileText(filePath)),
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\DocumentInfoTests.cs (2)
33var loader = new TestTextLoader("text"); 111SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithTextLoader(value), opt => opt.TextLoader, (TextLoader)new TestTextLoader("text"));
SolutionTests\SolutionTests.cs (6)
1010var loader = new TestTextLoader("new text"); 1032var loader = new TestTextLoader("new text"); 1054var loader = new TestTextLoader("new text"); 1616var textLoaderA = new TestTextLoader("class A {}", SourceHashAlgorithm.Sha1); 2366var loader = new TestTextLoader(checksumAlgorithm: SourceHashAlgorithm.Sha1); 5523static (s, documentId) => s.WithDocumentTextLoader(documentId, new TestTextLoader(Guid.NewGuid().ToString()), PreservationMode.PreserveValue), documentId).GetReference();