1 write to _fileSystem
dotnet.Tests (1)
ToolManifestTests\ToolManifestEditorTests.cs (1)
22
_fileSystem
= new FileSystemMockBuilder().UseCurrentSystemTemporaryDirectory().Build();
32 references to _fileSystem
dotnet.Tests (32)
ToolManifestTests\ToolManifestEditorTests.cs (32)
23
_testDirectoryRoot =
_fileSystem
.Directory.CreateTemporaryDirectory().DirectoryPath;
30
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
32
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
39
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(
73
_fileSystem
.File.WriteAllText(manifestFile, _jsonContentWithoutToolsEntry);
75
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
82
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(
101
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
103
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
122
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(_jsonContent);
129
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
131
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
142
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(_jsonContent);
149
_fileSystem
.File.WriteAllText(manifestFile, _jsonWithInvalidField);
151
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
166
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(_jsonWithInvalidField);
173
_fileSystem
.File.WriteAllText(manifestFile, _jsonContentMissingVersion);
175
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
187
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
189
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
194
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(
214
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
216
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
226
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(_jsonContent);
233
_fileSystem
.File.WriteAllText(manifestFile, _jsonWithInvalidField);
235
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
247
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(_jsonWithInvalidField);
254
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
256
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
272
_fileSystem
.File.WriteAllText(manifestFile, _jsonContent);
274
var toolManifestFileEditor = new ToolManifestEditor(
_fileSystem
, new FakeDangerousFileDetector());
281
_fileSystem
.File.ReadAllText(manifestFile).Should().Be(