public virtual void TestConsumeSentenceInstance() { // we use the default locale, as its randomized by LuceneTestCase var bi = BreakIterator.CreateSentenceInstance(Locale.GetUS()); var ci = CharArrayIterator.NewSentenceInstance(); for (var i = 0; i < 10000; i++) { var text = TestUtil.RandomUnicodeString(Random()).toCharArray(); ci.SetText(text, 0, text.Length); Consume(bi, ci); } }
public virtual void TestSentenceInstance() { DoTests(CharArrayIterator.NewSentenceInstance()); }