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