Skip to content

Commit

Permalink
adjusted savegame path
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik518 committed Oct 21, 2023
1 parent f627085 commit 5edb259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoG_SGreader.Test/DataReaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ private static Player GetSaveGame(int saveGameNumber)
DataReader dataReader = new DataReader();
var txtConsoleMock = new Mock<ITextBoxWrapper>().Object;

string projectDirectory = Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") ?? Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.FullName;
string filePath = Path.Combine(projectDirectory, "SaveGames", saveGameNumber + ".cha");
string projectDirectory = Environment.GetEnvironmentVariable("GITHUB_WORKSPACE") ?? Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.FullName;
string filePath = Path.Combine(projectDirectory, "..", "SoG_SGreader.Test", "SaveGames", saveGameNumber + ".cha");

return dataReader.ReadFromFile(filePath, txtConsoleMock);
}
Expand Down

0 comments on commit 5edb259

Please sign in to comment.