2 writes to Root
Microsoft.Extensions.SecretManager.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
21
Root
= Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
27
Root
= path;
8 references to Root
Microsoft.Extensions.SecretManager.Tools.Tests (8)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
30
public string Path => System.IO.Path.Combine(_directory.
Root
, _filename);
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (7)
32
var subdir = new TemporaryDirectory(Path.Combine(
Root
, name), this);
78
Directory.CreateDirectory(
Root
);
98
File.WriteAllText(Path.Combine(
Root
, filename), contents);
103
if (
Root
== null || !Directory.Exists(
Root
) || _parent != null)
110
Directory.Delete(
Root
, recursive: true);
114
Console.Error.WriteLine($"Test cleanup failed to delete '{
Root
}'");