public void TestNumberGroupSizesLocale(string locale)
        {
            CultureInfo      myTestCulture = new CultureInfo(locale);
            NumberFormatInfo nfi           = myTestCulture.NumberFormat;

            int[] expected = NumberFormatInfoData.GetNumberGroupSizes(myTestCulture);
            Assert.Equal(expected, nfi.NumberGroupSizes);
        }
        public static IEnumerable <object[]> NumberGroupSizes_TestData()
        {
            yield return(new object[] { NumberFormatInfo.InvariantInfo, new int[] { 3 } });

            yield return(new object[] { new CultureInfo("en-US").NumberFormat, NumberFormatInfoData.GetNumberGroupSizes("en-US") });

            // TODO: when dotnet/corefx#2103 is addressed, we should also check fr-FR
            if (!PlatformDetection.IsUbuntu1510)
            {
                yield return(new object[] { new CultureInfo("ur-IN").NumberFormat, NumberFormatInfoData.GetNumberGroupSizes("ur-IN") });
            }
        }