public void Serializes_FlipTile()
        {
            // Arrange
            FlipTile tile = new FlipTile()
            {
                Id = "TileID",
                SmallBackgroundImage = new Uri("http://localhost/some/path/1"),
                WideBackgroundImage = new Uri("http://localhost/some/path/2"),
                WideBackBackgroundImage = new Uri("http://localhost/some/path/3"),
                WideBackContent = "Back of wide Tile size content",
                BackgroundImage = new Uri("/some/path/4", UriKind.Relative),
                BackBackgroundImage = new Uri("/some/path/5", UriKind.Relative),
                BackTitle = "你好",
                BackContent = "世界",
                Count = 100,
                Title = "Title"
            };
            MpnsPushMessage pushMessage = new MpnsPushMessage(tile);

            // Act
            string actual = pushMessage.ToString();

            // Assert
            Assert.Equal(Templates["FlipTile"], actual);
        }
        public void Serializes_FlipTileEmpty()
        {
            // Arrange
            FlipTile tile = new FlipTile();
            MpnsPushMessage pushMessage = new MpnsPushMessage(tile);

            // Act
            string actual = pushMessage.ToString();

            // Assert
            Assert.Equal(Templates["FlipTileEmpty"], actual);
        }
        public void Serialization_IsConsistent()
        {
            // Arrange
            FlipTile tile = new FlipTile
            {
                BackBackgroundImage = new Uri("http://localhost/path1"),
                BackContent = "back content",
                BackgroundImage = new Uri("http://localhost/path2"),
                BackTitle = "back title",
                Count = 10,
                Id = "id",
                SmallBackgroundImage = new Uri("http://localhost/path3"),
                Title = "title",
                Version = "2.0",
                WideBackBackgroundImage = new Uri("http://localhost/path4"),
                WideBackContent = "你好世界",
                WideBackgroundImage = new Uri("http://localhost/path5"),
            };

            // Assert
            SerializationAssert.VerifySerialization(tile, "{\"smallBackgroundImage\":\"http://localhost/path3\",\"wideBackgroundImage\":\"http://localhost/path5\",\"wideBackBackgroundImage\":\"http://localhost/path4\",\"wideBackContent\":\"你好世界\",\"backgroundImage\":\"http://localhost/path2\",\"backBackgroundImage\":\"http://localhost/path1\",\"backTitle\":\"back title\",\"backContent\":\"back content\",\"id\":\"id\",\"count\":10,\"title\":\"title\"}");
        }