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" }); }
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" }); }