Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "types") public void test_null(PeriodAdditionConvention type)
        public virtual void test_null(PeriodAdditionConvention type)
        {
            assertThrowsIllegalArg(() => type.adjust(null, Period.ofMonths(3), HolidayCalendars.NO_HOLIDAYS));
            assertThrowsIllegalArg(() => type.adjust(date(2014, 7, 11), null, HolidayCalendars.NO_HOLIDAYS));
            assertThrowsIllegalArg(() => type.adjust(date(2014, 7, 11), Period.ofMonths(3), null));
            assertThrowsIllegalArg(() => type.adjust(null, null, null));
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "convention") public void test_convention(PeriodAdditionConvention convention, java.time.LocalDate input, int months, java.time.LocalDate expected)
        public virtual void test_convention(PeriodAdditionConvention convention, LocalDate input, int months, LocalDate expected)
        {
            assertEquals(convention.adjust(input, Period.ofMonths(months), HolidayCalendars.SAT_SUN), expected);
        }