Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
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);
        }