mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 08:23:12 +00:00
81110b4231
keep with the times, kids handle some compiler messages
21 lines
529 B
C#
21 lines
529 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace PKHeX.Tests
|
|
{
|
|
internal static class TestUtil
|
|
{
|
|
public static string GetRepoPath()
|
|
{
|
|
var folder = Directory.GetCurrentDirectory();
|
|
while (!folder.EndsWith(nameof(Tests)))
|
|
{
|
|
var dir = Directory.GetParent(folder);
|
|
if (dir == null)
|
|
throw new ArgumentNullException(nameof(dir));
|
|
folder = dir.FullName;
|
|
}
|
|
return folder;
|
|
}
|
|
}
|
|
}
|