1 write to _fileSystem
dotnet.Tests (1)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
54_fileSystem = new FileSystemMockBuilder().UseCurrentSystemTemporaryDirectory().Build();
24 references to _fileSystem
dotnet.Tests (24)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (24)
55_temporaryDirectory = _fileSystem.Directory.CreateTemporaryDirectory().DirectoryPath; 58_fileSystem.Directory.CreateDirectory(_pathToPlaceShim); 60var toolPackageStoreMock = new ToolPackageStoreAndQuery(new DirectoryPath(_pathToPlacePackages), _fileSystem); 67fileSystem: _fileSystem, 68appHostShellShimMaker: new AppHostShellShimMakerMock(_fileSystem), 74_fileSystem); 75_toolPackageUninstallerMock = new ToolPackageUninstallerMock(_fileSystem, store); 79fileSystem: _fileSystem); 98_fileSystem.File.WriteAllText(Path.Combine(_temporaryDirectory, "nuget.config"), _nugetConfigWithInvalidSources); 109_fileSystem.File.Delete(Path.Combine(_temporaryDirectory, "nuget.config")); 149_fileSystem.File.Exists(ExpectedCommandPath()).Should().BeTrue(); 151_fileSystem.File.ReadAllText(ExpectedCommandPath())); 153_fileSystem.File.Exists(deserializedFakeShim.ExecutablePath).Should().BeTrue(); 173_fileSystem.File.Exists(ExpectedCommandPath()).Should().BeTrue(); 214_fileSystem.File.Exists(ExpectedCommandPath()) 218_fileSystem.File.ReadAllText(ExpectedCommandPath())); 219_fileSystem.File.Exists(deserializedFakeShim.ExecutablePath).Should().BeTrue(); 283_fileSystem.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse(); 289_fileSystem.File.CreateEmptyFile(ExpectedCommandPath()); // Create conflict shim 306_fileSystem.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse(); 656fileSystem: _fileSystem, 657appHostShellShimMaker: new AppHostShellShimMakerMock(_fileSystem), 799_fileSystem.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse(); 891_fileSystem.File.ReadAllText(ExpectedCommandPath()).Should().Be(tokenToIdentifyPackagedShim);