1 write to _fileSystem
dotnet.Tests (1)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (1)
26
_fileSystem
= new FileSystemMockBuilder().UseCurrentSystemTemporaryDirectory().Build();
25 references to _fileSystem
dotnet.Tests (25)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (25)
28
string temporaryDirectory =
_fileSystem
.Directory.CreateTemporaryDirectory().DirectoryPath;
29
_testDirectoryRoot =
_fileSystem
.Directory.CreateTemporaryDirectory().DirectoryPath;
31
_fileSystem
,
48
_fileSystem
.File.Exists(commandPath).Should().BeTrue("the following path exists: " + commandPath);
67
_fileSystem
.File.Exists(commandPath).Should().BeTrue("the following path exists: " + commandPath);
87
_fileSystem
.File.WriteAllText(Path.Combine(_testDirectoryRoot, ManifestFilename),
90
new(new DirectoryPath(_testDirectoryRoot),
_fileSystem
, new FakeDangerousFileDetector());
93
_fileSystem
.Directory.CreateDirectory(_nugetGlobalPackagesFolder.Value);
94
_fileSystem
.File.CreateEmptyFile(fakeExecutable.Value);
110
_fileSystem
);
120
_fileSystem
.File.WriteAllText(Path.Combine(_testDirectoryRoot, ManifestFilename),
123
new(new DirectoryPath(_testDirectoryRoot),
_fileSystem
, new FakeDangerousFileDetector());
126
_fileSystem
.Directory.CreateDirectory(_nugetGlobalPackagesFolder.Value);
127
_fileSystem
.File.CreateEmptyFile(fakeExecutable.Value);
143
_fileSystem
);
145
_fileSystem
.File.Delete(fakeExecutable.Value);
161
_fileSystem
.File.WriteAllText(Path.Combine(_testDirectoryRoot, ManifestFilename),
164
new(new DirectoryPath(_testDirectoryRoot),
_fileSystem
);
169
_fileSystem
);
183
_fileSystem
.File.WriteAllText(Path.Combine(_testDirectoryRoot, ManifestFilename),
186
new(new DirectoryPath(_testDirectoryRoot),
_fileSystem
);
190
_fileSystem
.Directory.CreateDirectory(_nugetGlobalPackagesFolder.Value);
191
_fileSystem
.File.CreateEmptyFile(fakeExecutableA.Value);
192
_fileSystem
.File.CreateEmptyFile(fakeExecutableDotnetA.Value);
215
_fileSystem
);