public void SaveLoad() { GameSessionHistory game = new GameSessionHistory(); game.GamesPlayed = Preferences.Get <int> (Preferences.MinPlayedGamesKey); game.MemoryScore = 20; history = new PlayerHistory(); history.ConfigPath = "."; history.SaveGameSession(game); history = new PlayerHistory(); history.ConfigPath = "."; history.Load(); Assert.AreEqual(1, history.Games.Count); Assert.AreEqual(20, history.Games[0].MemoryScore); }