public void TestGetTitleInstance() { BreakIterator bi = BreakIterator.GetTitleInstance(new CultureInfo("en-CA")); TestFmwk.assertNotEquals("Title instance break iterator not correctly instantiated", bi.First(), null); bi.SetText("Here is some Text"); TestFmwk.assertEquals("Title instance break iterator not correctly instantiated", bi.First(), 0); }
public void TestPreceding() { int pos = bi.Preceding(0); TestFmwk.assertEquals("BreakIterator preceding position not correct", BreakIterator.Done, pos); pos = bi.Preceding(5); TestFmwk.assertEquals("BreakIterator preceding position not correct", 4, pos); }