4 instantiations of TestableFileSystem
Microsoft.CodeAnalysis.Test.Utilities (4)
TestableFileSystem.cs (4)
44=> new TestableFileSystem() 52=> new TestableFileSystem() { OpenFileFunc = openFileFunc }; 58return new TestableFileSystem() 75=> new TestableFileSystem(map)
36 references to TestableFileSystem
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
8963csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8986csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9008csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9032csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9060csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9086csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9111csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) =>
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
BasicDeterministicKeyBuilderTests.cs (1)
203compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new TestableFile("hello")));
CSharpDeterministicKeyBuilderTests.cs (1)
380compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new TestableFile("hello")));
RebuildCommandLineTests.cs (2)
358TestableFileSystem.CreateForMap(FilePathToStreamMap), 517TestableFileSystem.CreateForMap(FilePathToStreamMap),
Microsoft.CodeAnalysis.Test.Utilities (21)
TestableCompiler.cs (14)
44/// Provides an easy to test version of <see cref="CommonCompiler"/>. This uses <see cref="TestableFileSystem"/> 57internal TestableFileSystem FileSystem { get; } 60internal TestableCompiler(CommonCompiler compiler, TestableFileSystem fileSystem, BuildPaths buildPaths) 101TestableFileSystem fileSystem, 110TestableFileSystem? fileSystem, 119fileSystem ??= TestableFileSystem.CreateForMap(); 129TestableFileSystem? fileSystem, 139internal CSharpCompilerImpl(string[] args, BuildPaths buildPaths, TestableFileSystem? fileSystem) 147TestableFileSystem fileSystem, 156TestableFileSystem? fileSystem, 166fileSystem ??= TestableFileSystem.CreateForMap(); 196TestableFileSystem? fileSystem, 206internal BasicCompilerImpl(string[] args, BuildPaths buildPaths, TestableFileSystem? fileSystem) 212private static void AppendNetCoreApp(TestableFileSystem fileSystem, string sdkPath, List<string> commandLineArgs, bool includeVisualBasicRuntime)
TestableFile.cs (1)
16/// This works with <see cref="TestableFileSystem"/> to have an "in memory" file that can
TestableFileSystem.cs (6)
40public static TestableFileSystem CreateForStandard( 51public static TestableFileSystem CreateForOpenFile(OpenFileFunc openFileFunc) 54public static TestableFileSystem CreateForExistingPaths(IEnumerable<string> existingPaths, StringComparer? comparer = null) 64public static TestableFileSystem CreateForFiles(params (string FilePath, TestableFile TestableFile)[] files) 72public static TestableFileSystem CreateForMap() => CreateForMap(new()); 74public static TestableFileSystem CreateForMap(Dictionary<string, TestableFile> map)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
9556vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:= 9576vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:= 9595vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:= 9616vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:=