public void CanPersistAndRetrievePlayer() { var player = new Player("Test", DateTime.UtcNow); var playerString = player.Serialize(); var deserializedPlayer = Player.Deserialize(playerString); Assert.AreEqual(player, deserializedPlayer); }
public static void PersistPlayer(Player player) { File.AppendAllText(_path, player.Serialize() + "\n"); }