PKHeX/Tests/PKHeX.Core.Tests/Util/TestUtil.cs

16 lines
357 B
C#
Raw Normal View History

using System.IO;
namespace PKHeX.Tests
{
internal static class TestUtil
{
public static string GetRepoPath()
{
var folder = Directory.GetCurrentDirectory();
while (!folder.EndsWith(nameof(Tests)))
folder = Directory.GetParent(folder).FullName;
return folder;
}
}
}