diff --git a/SoG_SGreader.Test/DataReaderTests.cs b/SoG_SGreader.Test/DataReaderTests.cs index aeeb938..d2c0531 100644 --- a/SoG_SGreader.Test/DataReaderTests.cs +++ b/SoG_SGreader.Test/DataReaderTests.cs @@ -16,7 +16,7 @@ private static Player GetSaveGame(int saveGameNumber) DataReader dataReader = new DataReader(); var txtConsoleMock = new Mock().Object; - string projectDirectory = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.FullName; + string projectDirectory = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.Parent.FullName; // Exception for GitHub Actions Test Runner if (Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") != null) @@ -24,7 +24,7 @@ private static Player GetSaveGame(int saveGameNumber) projectDirectory = Directory.GetParent(Environment.GetEnvironmentVariable("GITHUB_WORKSPACE")).FullName; } - string filePath = Path.Combine(projectDirectory, "..", "SoG_SGreader.Test", "SaveGames", saveGameNumber + ".cha"); + string filePath = Path.Combine(projectDirectory, "SoG_SGreader.Test", "SaveGames", saveGameNumber + ".cha"); return dataReader.ReadFromFile(filePath, txtConsoleMock); }