30 lines
682 B
C#
30 lines
682 B
C#
using System.IO;
|
|
|
|
namespace StellaOps.TestKit.Tests;
|
|
|
|
public sealed partial class DeterminismManifestTests
|
|
{
|
|
private static readonly string DeterminismRoot = Path.Combine(
|
|
Path.GetTempPath(),
|
|
"stellaops-tests",
|
|
"testkit",
|
|
"determinism-manifest");
|
|
|
|
private static string GetFilePath(string fileName)
|
|
{
|
|
Directory.CreateDirectory(DeterminismRoot);
|
|
return Path.Combine(DeterminismRoot, fileName);
|
|
}
|
|
|
|
private static string GetMissingFilePath(string fileName)
|
|
{
|
|
var path = GetFilePath(fileName);
|
|
if (File.Exists(path))
|
|
{
|
|
File.Delete(path);
|
|
}
|
|
|
|
return path;
|
|
}
|
|
}
|