/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/ |
H A D | CalendarHelpers.cs | 45 … private static int MaxEra(Calendar calendar) => calendar.GetEra(calendar.MaxSupportedDateTime); 53 return calendar.GetYear(calendar.MaxSupportedDateTime); in MaxCalendarYearInEra() 64 return calendar.MaxSupportedDateTime.Year; in MaxGregorianYearInEra() 158 DateTime maxDate = calendar.MaxSupportedDateTime; in DateTime_TestData() 246 … Assert.ThrowsAny<ArgumentException>(() => calendar.AddYears(calendar.MaxSupportedDateTime, 1)); in AddYears_Invalid() 254 … Assert.ThrowsAny<ArgumentException>(() => calendar.AddMonths(calendar.MaxSupportedDateTime, 1)); in AddMonths_Invalid() 265 …tensions.Throws<ArgumentException>(null, () => calendar.AddDays(calendar.MaxSupportedDateTime, 1)); in AddDays_Invalid() 276 …ensions.Throws<ArgumentException>(null, () => calendar.AddHours(calendar.MaxSupportedDateTime, 1)); in AddHours_Invalid() 287 …sions.Throws<ArgumentException>(null, () => calendar.AddMinutes(calendar.MaxSupportedDateTime, 1)); in AddMinutes_Invalid() 295 …sions.Throws<ArgumentException>(null, () => calendar.AddSeconds(calendar.MaxSupportedDateTime, 1)); in AddSeconds_Invalid() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/TaiwanCalendar/ |
H A D | TaiwanCalendarAddMonths.cs | 18 if ((calendar.MaxSupportedDateTime.Year - randomDateTime.Year - 1911) > 1000) in AddMonths_TestData() 24 …ld return new object[] { randomDateTime, random.Next(1, (calendar.MaxSupportedDateTime.Year - rand… in AddMonths_TestData() 36 yield return new object[] { calendar.MaxSupportedDateTime, 0 }; in AddMonths_TestData()
|
H A D | TaiwanCalendarMaxSupportedDateTime.cs | 12 public void MaxSupportedDateTime() in MaxSupportedDateTime() method in System.Globalization.Tests.TaiwanCalendarMaxSupportedDateTime 14 Assert.Equal(DateTime.MaxValue, new TaiwanCalendar().MaxSupportedDateTime); in MaxSupportedDateTime()
|
H A D | TaiwanCalendarAddYears.cs | 18 …yield return new object[] { randomDateTime, rand.Next(1, (tc.MaxSupportedDateTime.Year - randomDat… in AddYears_TestData() 23 yield return new object[] { tc.MaxSupportedDateTime, 0 }; in AddYears_TestData()
|
H A D | TaiwanCalendarGetEra.cs | 15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetEra_TestData()
|
H A D | TaiwanCalendarGetMonth.cs | 15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetMonth_TestData()
|
H A D | TaiwanCalendarTwoDigitYearMax.cs | 21 int newTwoDigitYearMax = new Random(-55).Next(99, calendar.MaxSupportedDateTime.Year); in TwoDigitYearMax_Set()
|
H A D | TaiwanCalendarGetYear.cs | 15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetYear_TestData()
|
H A D | TaiwanCalendarGetDayOfMonth.cs | 15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetDayOfMonth_TestData()
|
H A D | TaiwanCalendarGetDayOfWeek.cs | 15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetDayOfWeek_TestData()
|
H A D | TaiwanCalendarUtilities.cs | 27 int maxYear = calendar.MaxSupportedDateTime.Year; in RandomYear()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ |
H A D | ThaiBuddhistCalendarMaxSupportedDateTime.cs | 12 public void MaxSupportedDateTime() in MaxSupportedDateTime() method in System.Globalization.Tests.ThaiBuddhistCalendarMaxSupportedDateTime 14 Assert.Equal(DateTime.MaxValue, new ThaiBuddhistCalendar().MaxSupportedDateTime); in MaxSupportedDateTime()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/KoreanCalendar/ |
H A D | KoreanCalendarMaxSupportedDateTime.cs | 12 public void MaxSupportedDateTime() in MaxSupportedDateTime() method in System.Globalization.Tests.KoreanCalendarMaxSupportedDateTime 14 Assert.Equal(DateTime.MaxValue, new KoreanCalendar().MaxSupportedDateTime); in MaxSupportedDateTime()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/JapaneseCalendar/ |
H A D | JapaneseCalendarMaxSupportedDateTime.cs | 12 public void MaxSupportedDateTime() in MaxSupportedDateTime() method in System.Globalization.Tests.JapaneseCalendarMaxSupportedDateTime 14 Assert.Equal(DateTime.MaxValue, new JapaneseCalendar().MaxSupportedDateTime); in MaxSupportedDateTime()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Extensions/tests/System/ |
H A D | Convert.ToDateTime.cs | 23 if (expectedValues[2] > dateTimeFormat.Calendar.MaxSupportedDateTime) in FromString() 24 expectedValues[2] = dateTimeFormat.Calendar.MaxSupportedDateTime.Date; in FromString()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/globalization/ |
H A D | eastasianlunisolarcalendar.cs | 157 if (ticks < MinSupportedDateTime.Ticks || ticks > MaxSupportedDateTime.Ticks) { in CheckTicksRange() 161 MinSupportedDateTime, MaxSupportedDateTime)); in CheckTicksRange() 439 CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); in AddMonths() 462 CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); in AddYears()
|
H A D | calendar.cs | 113 public virtual DateTime MaxSupportedDateTime property in System.Globalization.Calendar 271 CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime); in Add() 778 return (year >= GetYear(MinSupportedDateTime) && year <= GetYear(MaxSupportedDateTime)); in IsValidYear()
|
H A D | gregoriancalendarhelper.cs | 317 … if (ticks < m_Cal.MinSupportedDateTime.Ticks || ticks > m_Cal.MaxSupportedDateTime.Ticks) { in CheckTicksRange() 324 m_Cal.MaxSupportedDateTime)); in CheckTicksRange() 382 Calendar.CheckAddResult(ticks, m_Cal.MinSupportedDateTime, m_Cal.MaxSupportedDateTime); in AddMonths()
|
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/shared/System/Globalization/ |
H A D | EastAsianLunisolarCalendar.cs | 161 if (ticks < MinSupportedDateTime.Ticks || ticks > MaxSupportedDateTime.Ticks) in CheckTicksRange() 166 MinSupportedDateTime, MaxSupportedDateTime)); in CheckTicksRange() 477 CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); in AddMonths() 503 CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); in AddYears()
|
H A D | Calendar.cs | 75 public virtual DateTime MaxSupportedDateTime property in System.Globalization.Calendar 231 CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime); in Add() 755 return (year >= GetYear(MinSupportedDateTime) && year <= GetYear(MaxSupportedDateTime)); in IsValidYear()
|
H A D | GregorianCalendarHelper.cs | 314 … if (ticks < m_Cal.MinSupportedDateTime.Ticks || ticks > m_Cal.MaxSupportedDateTime.Ticks) in CheckTicksRange() 322 m_Cal.MaxSupportedDateTime)); in CheckTicksRange() 379 Calendar.CheckAddResult(ticks, m_Cal.MinSupportedDateTime, m_Cal.MaxSupportedDateTime); in AddMonths()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/CoreLib/System/Globalization/ |
H A D | EastAsianLunisolarCalendar.cs | 161 if (ticks < MinSupportedDateTime.Ticks || ticks > MaxSupportedDateTime.Ticks) in CheckTicksRange() 166 MinSupportedDateTime, MaxSupportedDateTime)); in CheckTicksRange() 477 CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); in AddMonths() 503 CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); in AddYears()
|
H A D | Calendar.cs | 75 public virtual DateTime MaxSupportedDateTime property in System.Globalization.Calendar 231 CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime); in Add() 755 return (year >= GetYear(MinSupportedDateTime) && year <= GetYear(MaxSupportedDateTime)); in IsValidYear()
|
H A D | GregorianCalendarHelper.cs | 314 … if (ticks < m_Cal.MinSupportedDateTime.Ticks || ticks > m_Cal.MaxSupportedDateTime.Ticks) in CheckTicksRange() 322 m_Cal.MaxSupportedDateTime)); in CheckTicksRange() 379 Calendar.CheckAddResult(ticks, m_Cal.MinSupportedDateTime, m_Cal.MaxSupportedDateTime); in AddMonths()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/GregorianCalendar/ |
H A D | GregorianCalendarMaxSupportedDateTime.cs | 21 Assert.Equal(DateTime.MaxValue, calendar.MaxSupportedDateTime); in MinSupportedDateTime()
|