public void TestSeparateTrees() { var kw = Collator.Keywords.ToArray(); if (!assertTrue("getKeywords != null", kw != null)) { return; } CheckArray("getKeywords", kw, KW); String[] kwval = Collator.GetKeywordValues(KW[0]); if (!assertTrue("getKeywordValues != null", kwval != null)) { return; } CheckArray("getKeywordValues", kwval, KWVAL); bool[] isAvailable = new bool[1]; UCultureInfo equiv = Collator.GetFunctionalEquivalent(KW[0], new UCultureInfo("de"), isAvailable); if (assertTrue("getFunctionalEquivalent(de)!=null", equiv != null)) { assertEquals("getFunctionalEquivalent(de)", "root", equiv.ToString()); } assertTrue("getFunctionalEquivalent(de).isAvailable==true", isAvailable[0] == true); equiv = Collator.GetFunctionalEquivalent(KW[0], new UCultureInfo("de_DE"), isAvailable); if (assertTrue("getFunctionalEquivalent(de_DE)!=null", equiv != null)) { assertEquals("getFunctionalEquivalent(de_DE)", "root", equiv.ToString()); } assertTrue("getFunctionalEquivalent(de_DE).isAvailable==false", isAvailable[0] == false); equiv = Collator.GetFunctionalEquivalent(KW[0], new UCultureInfo("zh_Hans")); if (assertTrue("getFunctionalEquivalent(zh_Hans)!=null", equiv != null)) { assertEquals("getFunctionalEquivalent(zh_Hans)", "zh", equiv.ToString()); } }