9 instantiations of TestableFile
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
BasicDeterministicKeyBuilderTests.cs (1)
203
compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new
TestableFile
("hello")));
CSharpDeterministicKeyBuilderTests.cs (1)
380
compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new
TestableFile
("hello")));
RebuildCommandLineTests.cs (3)
38
FilePathToStreamMap.Add(Path.Combine(BuildPaths.WorkingDirectory, filePath), new
TestableFile
(content));
43
FilePathToStreamMap.Add(Path.Combine(BuildPaths.SdkDirectory!, filePath), new
TestableFile
(imageBytes));
51
FilePathToStreamMap.Add(filePath, new
TestableFile
());
Microsoft.CodeAnalysis.Test.Utilities (4)
TestableCompiler.cs (4)
77
var file = new
TestableFile
(content);
85
var file = new
TestableFile
(imageBytes);
93
var file = new
TestableFile
();
217
fileSystem.Map[Path.Combine(sdkPath, referenceInfo.FileName)] = new
TestableFile
(referenceInfo.ImageBytes);
15 references to TestableFile
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RebuildCommandLineTests.cs (2)
29
public Dictionary<string,
TestableFile
> FilePathToStreamMap { get; } = new Dictionary<string,
TestableFile
>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Test.Utilities (13)
TestableCompiler.cs (5)
23
public
TestableFile
TestableFile { get; }
26
public TestableCompilerFile(string filePath,
TestableFile
testableFile)
77
var
file = new TestableFile(content);
85
var
file = new TestableFile(imageBytes);
93
var
file = new TestableFile();
TestableFile.cs (3)
26
public
TestableFile
MemoryFile { get; }
29
public TestableFileStream(
TestableFile
memoryFile)
37
public TestableFileStream(
TestableFile
memoryFile, byte[] bytes, bool writable)
TestableFileSystem.cs (5)
18
private readonly Dictionary<string,
TestableFile
>? _map;
24
public Dictionary<string,
TestableFile
> Map => _map ?? throw new InvalidOperationException();
27
private TestableFileSystem(Dictionary<string,
TestableFile
>? map = null)
64
public static TestableFileSystem CreateForFiles(params (string FilePath,
TestableFile
TestableFile)[] files)
74
public static TestableFileSystem CreateForMap(Dictionary<string,
TestableFile
> map)