Пример #1
0
        public void ShouldCreatePlayerSnap()
        {
            player.Level     = 1;
            player.Score     = 10;
            player.Timestamp = DateTime.Now;
            var snap = player.CreatePlayerSnap();

            playerHistory.AddPlayerSnap(snap);
            Assert.AreEqual(player.Level, snap.Player.Level);
            Assert.AreEqual(player.Score, snap.Player.Score);
            Assert.AreEqual(player.Timestamp, snap.Player.Timestamp);
        }