Exemple #1
0
        public void HasErrorAlertEmpty()
        {
            var payload = new NotificationPayload();

            payload.Alert = new Dictionary <string, object>();
            Assert.False(payload.HasError());
        }
Exemple #2
0
        public void HasErrorAlertNoneError()
        {
            var payload = new NotificationPayload();

            payload.Alert = new Dictionary <string, object> {
                { "title", "title" }
            };

            Assert.False(payload.HasError());
        }
Exemple #3
0
        public void HasErrorAlertErrorKey()
        {
            var payload = new NotificationPayload();

            payload.Alert = new Dictionary <string, object> {
                { "error", "error" }
            };

            Assert.True(payload.HasError());
        }
Exemple #4
0
        public void HasErrorAlertNull()
        {
            var payload = new NotificationPayload();

            Assert.False(payload.HasError());
        }