public void Load_GameState_From_JSON() { var s = new Store(SAVE_GAME_FILE_NAME, _saveFolder); s.SaveGame(_gameState); var gs = s.LoadGame(Path.Combine(_saveFolder, SAVE_GAME_FILE_NAME)); Assert.IsNotNull(gs); }
public void Save_GameState_To_JSON() { var s = new Store(SAVE_GAME_FILE_NAME, _saveFolder); s.SaveGame(_gameState); }
public void Load_GameState_From_JSON() { var s = new Store("TestGameFile", _saveFolder); s.SaveGame(_gameState); var gs = s.LoadGame(Path.Combine(_saveFolder, "TestGameFile")); Assert.IsNotNull(gs); }
public void Save_Throws_Without_GameName() { var s = new Store("", _saveFolder); }
public void Save_GameState_To_JSON() { var s = new Store("TestGameFile", _saveFolder); s.SaveGame(_gameState); }