mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-05-01 07:12:50 +08:00
23 lines
603 B
C#
23 lines
603 B
C#
using System.IO;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Spectre.Console.Tests
|
|
{
|
|
public static class VerifyConfiguration
|
|
{
|
|
[ModuleInitializer]
|
|
public static void Init()
|
|
{
|
|
VerifyTests.VerifierSettings.DeriveTestDirectory((_, directory) =>
|
|
{
|
|
var expectations = Path.Combine(directory, "Expectations");
|
|
if (!Directory.Exists(expectations))
|
|
{
|
|
Directory.CreateDirectory(expectations);
|
|
}
|
|
|
|
return expectations;
|
|
});
|
|
}
|
|
}
|
|
} |