private void TryHyphenate(String lang, String testWorld, bool shouldPass)
        {
            String[] parts = iText.IO.Util.StringUtil.Split(lang, "_");
            lang = parts[0];
            String            country = (parts.Length == 2) ? parts[1] : null;
            HyphenationConfig config  = new HyphenationConfig(lang, country, 3, 3);

            iText.Layout.Hyphenation.Hyphenation result = config.Hyphenate(testWorld);
            if ((result == null) == shouldPass)
            {
                errors.Add(MessageFormatUtil.Format("\nLanguage: {0}, error on hyphenate({1}), shouldPass: {2}", lang, testWorld
                                                    , shouldPass));
            }
        }
        private void TestHyphenateResult(String lang, String testWorld, int[] expectedHyphenatePoints)
        {
            String[] parts = iText.IO.Util.StringUtil.Split(lang, "_");
            lang = parts[0];
            String            country = (parts.Length == 2) ? parts[1] : null;
            HyphenationConfig config  = new HyphenationConfig(lang, country, 3, 3);

            iText.Layout.Hyphenation.Hyphenation result = config.Hyphenate(testWorld);
            if (result != null)
            {
                NUnit.Framework.Assert.AreEqual(expectedHyphenatePoints, result.GetHyphenationPoints());
            }
            else
            {
                NUnit.Framework.Assert.IsNull(expectedHyphenatePoints);
            }
        }