Beispiel #1
0
        public void CanPersistAndRetrievePlayer()
        {
            var player = new Player("Test", DateTime.UtcNow);
            var playerString = player.Serialize();
            var deserializedPlayer = Player.Deserialize(playerString);

            Assert.AreEqual(player, deserializedPlayer);
        }
Beispiel #2
0
 public static void PersistPlayer(Player player)
 {
     File.AppendAllText(_path, player.Serialize() + "\n");
 }