diff --git a/SoG_SGreader.Test/DataReaderTests.cs b/SoG_SGreader.Test/DataReaderTests.cs index d2c0531..5360ab4 100644 --- a/SoG_SGreader.Test/DataReaderTests.cs +++ b/SoG_SGreader.Test/DataReaderTests.cs @@ -19,9 +19,8 @@ private static Player GetSaveGame(int saveGameNumber) string projectDirectory = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.Parent.FullName; // Exception for GitHub Actions Test Runner - if (Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") != null) - { - projectDirectory = Directory.GetParent(Environment.GetEnvironmentVariable("GITHUB_WORKSPACE")).FullName; + if (Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") != null) { + projectDirectory = Environment.GetEnvironmentVariable("GITHUB_WORKSPACE"); } string filePath = Path.Combine(projectDirectory, "SoG_SGreader.Test", "SaveGames", saveGameNumber + ".cha");