public void ReadEmailGroupFromXmlUsingMulipleNotificationTypes()
        {
            EmailGroup group = (EmailGroup)NetReflector.Read(@"<group name=""foo""> <notifications><NotificationType>Failed</NotificationType><NotificationType>Fixed</NotificationType><NotificationType>Exception</NotificationType></notifications> </group> ");

            Assert.IsTrue(group.HasNotification(EmailGroup.NotificationType.Exception));
            Assert.IsTrue(group.HasNotification(EmailGroup.NotificationType.Fixed));
            Assert.IsTrue(group.HasNotification(EmailGroup.NotificationType.Failed));
            Assert.IsFalse(group.HasNotification(EmailGroup.NotificationType.Change));
        }
        public void ReadEmailGroupFromXmlUsingAlwaysNotificationType()
        {
            EmailGroup group = (EmailGroup)NetReflector.Read(@"<group name=""foo""> <notifications><NotificationType>Always</NotificationType></notifications> </group>");

            Assert.AreEqual("foo", group.Name);
            Assert.IsTrue(group.HasNotification(EmailGroup.NotificationType.Always));
        }
        public void ReadEmailGroupFromXmlUsingExceptionNotificationType()
        {
            EmailGroup group = (EmailGroup)NetReflector.Read(@"<group name=""foo""> <notifications><NotificationType>Exception</NotificationType></notifications> </group>");

            Assert.IsTrue(group.HasNotification(EmailGroup.NotificationType.Exception));
        }