public void JsonPayload_TakesOverSerialization() { // Arrange GooglePushMessage gcmNot = new GooglePushMessage() { JsonPayload = "text" }; // Act string actual = gcmNot.ToString(); // Assert Assert.Equal("text", actual); }
public void Serializes_Demo() { // Arrange GooglePushMessage gcmNot = new GooglePushMessage(); gcmNot.CollapseKey = "demo"; gcmNot.DelayWhileIdle = true; gcmNot.Data.Add("key1", "value1"); gcmNot.Data.Add("key2", "value2"); gcmNot.TimeToLiveInSeconds = 3; // Act string actual = gcmNot.ToString(); // Assert Assert.Equal(Templates["Demo"], actual); }