public void GetBrokenRules_ActionWithNoMessage_Success() { validAction.Details = null; var brokenRulesCount = validAction.GetBrokenRules().Count(); Assert.AreEqual(1, brokenRulesCount); }
public void Action_ActionWithNoReminderType_NoBrokenRules() { //validAction.ReminderType = ReminderType.NoReminder; DA.Action actionWithNoReminderType = validAction; var brokenRulesCount = actionWithNoReminderType.GetBrokenRules().Count(); Assert.AreEqual(0, brokenRulesCount); }
public void Action_ActionWithEarlierRemindOn_GetBrokenRules() { validAction.RemindOn = DateTime.Now.AddDays(-1); DA.Action actionWithEarlierRemindOn = validAction; var brokenRulesCount = actionWithEarlierRemindOn.GetBrokenRules().Count(); Assert.AreEqual(1, brokenRulesCount); }
public void Action_ActionWithNoMessage_GetBrokenRules() { validAction.Details = null; DA.Action actionWithNoMessage = validAction; var brokenRulesCount = actionWithNoMessage.GetBrokenRules().Count(); Assert.AreEqual(null, actionWithNoMessage.Details); Assert.AreEqual(1, brokenRulesCount); }
public void Action_ActionWithNoContacts_GetBrokenRules() { validAction.Contacts = null; DA.Action actionWithNoContact = validAction; var brokenRulesCount = actionWithNoContact.GetBrokenRules().Count(); // what is the use of this? -- srinivas (this may not be required) //Assert.AreEqual(null, actionWithNoContact.Contacts); Assert.AreEqual(1, brokenRulesCount); }