public virtual void test_withoutDefinition() { ScheduleException test = new ScheduleException("Hello {}", "World"); assertEquals(test.Message, "Hello World"); assertEquals(test.Definition, null); }
public virtual void test_withDefinition() { PeriodicSchedule defn = PeriodicSchedule.of(date(2014, 6, 30), date(2014, 8, 30), Frequency.P1M, BusinessDayAdjustment.NONE, StubConvention.NONE, false); ScheduleException test = new ScheduleException(defn, "Hello {}", "World"); assertEquals(test.Message, "Hello World"); assertEquals(test.Definition, defn); }