Fix test path resolution

This commit is contained in:
Miha Zupan
2019-01-21 16:38:58 +01:00
parent c346e55a46
commit dd68351235
2 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,11 @@ namespace SpecFileGen
{
class Program
{
const string SpecificationsDirectory = "../../../../Markdig.Tests/Specs/";
static readonly string SpecificationsDirectory =
Path.GetFullPath(
Path.Combine(
Path.GetDirectoryName(typeof(Spec).Assembly.Location),
"../../../../Markdig.Tests/Specs/"));
class Spec
{