mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
19 lines
430 B
C#
19 lines
430 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace PKHeX.Core.Tests;
|
|
|
|
internal static class TestUtil
|
|
{
|
|
public static string GetRepoPath()
|
|
{
|
|
var folder = Directory.GetCurrentDirectory();
|
|
while (!folder.EndsWith(nameof(Tests)))
|
|
{
|
|
var dir = Directory.GetParent(folder);
|
|
ArgumentNullException.ThrowIfNull(dir);
|
|
folder = dir.FullName;
|
|
}
|
|
return folder;
|
|
}
|
|
}
|