1 write to _toolDownloadDir
Microsoft.DotNet.Tools.Tests.ComponentMocks (1)
ToolPackageDownloaderMock.cs (1)
115_toolDownloadDir = isGlobalTool ? _globalToolStageDir : _localToolDownloadDir;
9 references to _toolDownloadDir
Microsoft.DotNet.Tools.Tests.ComponentMocks (9)
ToolPackageDownloaderMock.cs (9)
117rollbackDirectory = _toolDownloadDir.Value; 134rollbackDirectory = isGlobalTool ? _toolDownloadDir.Value : Path.Combine(_toolDownloadDir.Value, packageId.ToString(), packageVersion.ToString()); 144_fileSystem.Directory.CreateDirectory(Path.Combine(_toolDownloadDir.Value, fakeExecutableSubDirectory)); 145_fileSystem.File.CreateEmptyFile(Path.Combine(_toolDownloadDir.Value, fakeExecutablePath)); 147_toolDownloadDir.WithFile("project.assets.json").Value, 150_toolDownloadDir.WithFile(FakeCommandSettingsFileName).Value, 158var version = _toolPackageStore.GetStagedPackageVersion(_toolDownloadDir, packageId); 192_fileSystem.Directory.Move(_toolDownloadDir.Value, packageDirectory.Value);