public void Wedding_CannotHaveAnEndDateEarlierThanAStartDate() { var wedding = new Wedding(); Action exec = () => wedding.SetDates(DateTime.Now.AddDays(1), DateTime.Now.AddDays(-1)); Assert.Throws <ArgumentException>(exec); }
public void Wedding_CannotHaveAStartDateBeforeTodaysDate() { var wedding = new Wedding(); Action exec = () => wedding.SetDates(DateTime.Now.AddDays(-1), DateTime.Now); Assert.Throws <ArgumentException>(exec); }