public void Serialization_IsConsistent()
        {
            // Arrange
            AlertProperties alert = new AlertProperties
            {
                Body = "Body",
                ActionLocKey = "ActionLocKey",
                LocKey = "LocKey",
                LaunchImage = "LaunchImage"
            };
            alert.LogArgs.Add("Arg");

            // Assert
            SerializationAssert.VerifySerialization(alert, "{\"body\":\"Body\",\"action-loc-key\":\"ActionLocKey\",\"loc-key\":\"LocKey\",\"launch-image\":\"LaunchImage\",\"loc-args\":[\"Arg\"]}", new List<string> { "Item" });
        }
Exemplo n.º 2
0
        public void Serialization_IsConsistent()
        {
            // Arrange
            AlertProperties alert = new AlertProperties
            {
                Body         = "Body",
                ActionLocKey = "ActionLocKey",
                LocKey       = "LocKey",
                LaunchImage  = "LaunchImage"
            };

            alert.LogArgs.Add("Arg");

            // Assert
            SerializationAssert.VerifySerialization(alert, "{\"body\":\"Body\",\"action-loc-key\":\"ActionLocKey\",\"loc-key\":\"LocKey\",\"launch-image\":\"LaunchImage\",\"loc-args\":[\"Arg\"]}", new List <string> {
                "Item"
            });
        }