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);
60
var toolPackageStoreMock = new ToolPackageStoreAndQuery(new DirectoryPath(_pathToPlacePackages),
_fileSystem
);
67
fileSystem:
_fileSystem
,
68
appHostShellShimMaker: new AppHostShellShimMakerMock(
_fileSystem
),
74
_fileSystem
);
75
_toolPackageUninstallerMock = new ToolPackageUninstallerMock(
_fileSystem
, store);
79
fileSystem:
_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();
656
fileSystem:
_fileSystem
,
657
appHostShellShimMaker: new AppHostShellShimMakerMock(
_fileSystem
),
799
_fileSystem
.Directory.Exists(Path.Combine(_pathToPlacePackages, PackageId)).Should().BeFalse();
891
_fileSystem
.File.ReadAllText(ExpectedCommandPath()).Should().Be(tokenToIdentifyPackagedShim);