Home
last modified time | relevance | path

Searched refs:MaxSupportedDateTime (Results 1 – 25 of 92) sorted by relevance

1234

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Globalization.Calendars/tests/
H A DCalendarHelpers.cs45 … 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 DTaiwanCalendarAddMonths.cs18 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 DTaiwanCalendarMaxSupportedDateTime.cs12 public void MaxSupportedDateTime() in MaxSupportedDateTime() method in System.Globalization.Tests.TaiwanCalendarMaxSupportedDateTime
14 Assert.Equal(DateTime.MaxValue, new TaiwanCalendar().MaxSupportedDateTime); in MaxSupportedDateTime()
H A DTaiwanCalendarAddYears.cs18 …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 DTaiwanCalendarGetEra.cs15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetEra_TestData()
H A DTaiwanCalendarGetMonth.cs15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetMonth_TestData()
H A DTaiwanCalendarTwoDigitYearMax.cs21 int newTwoDigitYearMax = new Random(-55).Next(99, calendar.MaxSupportedDateTime.Year); in TwoDigitYearMax_Set()
H A DTaiwanCalendarGetYear.cs15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetYear_TestData()
H A DTaiwanCalendarGetDayOfMonth.cs15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetDayOfMonth_TestData()
H A DTaiwanCalendarGetDayOfWeek.cs15 yield return new object[] { new TaiwanCalendar().MaxSupportedDateTime }; in GetDayOfWeek_TestData()
H A DTaiwanCalendarUtilities.cs27 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 DThaiBuddhistCalendarMaxSupportedDateTime.cs12 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 DKoreanCalendarMaxSupportedDateTime.cs12 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 DJapaneseCalendarMaxSupportedDateTime.cs12 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 DConvert.ToDateTime.cs23 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 Deastasianlunisolarcalendar.cs157 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 Dcalendar.cs113 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 Dgregoriancalendarhelper.cs317 … 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 DEastAsianLunisolarCalendar.cs161 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 DCalendar.cs75 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 DGregorianCalendarHelper.cs314 … 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 DEastAsianLunisolarCalendar.cs161 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 DCalendar.cs75 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 DGregorianCalendarHelper.cs314 … 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 DGregorianCalendarMaxSupportedDateTime.cs21 Assert.Equal(DateTime.MaxValue, calendar.MaxSupportedDateTime); in MinSupportedDateTime()

1234