public void Serialization_IsConsistent()
        {
            // Arrange
            Toast tile = new Toast
            {
                Parameter = "parameter",
                Text1 = "你好",
                Text2 = "世界",
                Version = "1.0",
            };

            // Assert
            SerializationAssert.VerifySerialization(tile, "{\"text1\":\"你好\",\"text2\":\"世界\",\"parameter\":\"parameter\"}");
        }
        public void Serializes_Toast()
        {
            // Arrange
            Toast toast = new Toast()
            {
                Text1 = "Text 1",
                Text2 = "你好世界",
                Parameter = "Parameter"
            };
            MpnsPushMessage pushMessage = new MpnsPushMessage(toast);

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

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

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

            // Assert
            Assert.Equal(Templates["ToastEmpty"], actual);
        }