public static IEnumerable <object[]> CalendarWeekRule_Get_TestData()
        {
            yield return(new object[] { DateTimeFormatInfo.InvariantInfo, CalendarWeekRule.FirstDay });

            yield return(new object[] { new CultureInfo("en-US").DateTimeFormat, CalendarWeekRule.FirstDay });

            yield return(new object[] { new CultureInfo("br-FR").DateTimeFormat, DateTimeFormatInfoData.BrFRCalendarWeekRule() });
        }
Beispiel #2
0
        public static IEnumerable <object[]> CalendarWeekRule_Get_TestData()
        {
            yield return(new object[] { DateTimeFormatInfo.InvariantInfo, CalendarWeekRule.FirstDay });

            yield return(new object[] { new CultureInfo("en-US").DateTimeFormat, CalendarWeekRule.FirstDay });

            if (PlatformDetection.IsNotBrowser)
            {
                yield return(new object[] { new CultureInfo("br-FR").DateTimeFormat, DateTimeFormatInfoData.BrFRCalendarWeekRule() });
            }
            else
            {
                // "br-FR" is not presented in Browser's ICU. Let's test ru-RU instead.
                yield return(new object[] { new CultureInfo("ru-RU").DateTimeFormat, CalendarWeekRule.FirstFourDayWeek });
            }
        }