1 write to _fileSystem
Microsoft.DotNet.Tools.Tests.ComponentMocks (1)
ToolPackageDownloaderMock.cs (1)
66_fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
16 references to _fileSystem
Microsoft.DotNet.Tools.Tests.ComponentMocks (16)
ToolPackageDownloaderMock.cs (16)
144_fileSystem.Directory.CreateDirectory(Path.Combine(_toolDownloadDir.Value, fakeExecutableSubDirectory)); 145_fileSystem.File.CreateEmptyFile(Path.Combine(_toolDownloadDir.Value, fakeExecutablePath)); 146_fileSystem.File.WriteAllText( 149_fileSystem.File.WriteAllText( 160if (_fileSystem.Directory.Exists(packageDirectory.Value)) 172_fileSystem.Directory.CreateDirectory(packageDirectory.Value); 174_fileSystem.File.CreateEmptyFile(executable.Value); 191_fileSystem.Directory.CreateDirectory(packageRootDirectory.Value); 192_fileSystem.Directory.Move(_toolDownloadDir.Value, packageDirectory.Value); 204return new ToolPackageMock(_fileSystem, id: packageId, 212if (rollbackDirectory != null && _fileSystem.Directory.Exists(rollbackDirectory)) 214_fileSystem.Directory.Delete(rollbackDirectory, true); 216if (_fileSystem.Directory.Exists(packageRootDirectory.Value) && 217!_fileSystem.Directory.EnumerateFileSystemEntries(packageRootDirectory.Value).Any()) 219_fileSystem.Directory.Delete(packageRootDirectory.Value, false); 280_fileSystem.File.Exists(possibleNugetConfig.Value));