コード例 #1
0
        private void TestJavaLocale(HashSet <CultureInfo> cultures,
                                    Locale original,
                                    String display,
                                    Locale expected)
        {
            if (expected == null)
            {
                expected = original;
            }
            CultureInfo cinfo  = original.ToCultureInfo();
            Locale      actual = Locale.FindLocale(cinfo);

            Assert.AreEqual(expected, actual, display + " (" + original + ") " + " didn't map");
        }