Exemplo n.º 1
0
        public void TileSerializationTest()
        {
            var tile = DebugData.GetEmptyTile();

            tile.Color = new System.Collections.Generic.List <byte>()
            {
                0, 0, 0
            };

            string json = JsonConvert.SerializeObject(tile);

            var tile2 = JsonConvert.DeserializeObject <Tile>(json);

            Assert.AreEqual(tile, tile2); //test round-trip of tile through json
        }