assure("gotoPreviousSentence(): wrong string: " + string,
"Another sentence. Sentence 3.".equals(string));
}
bSuccess = xSentenceCursor.gotoPreviousSentence(false);
assure("gotoPreviousSentence(): succeeded", !bSuccess);
bSuccess = xSentenceCursor.gotoEndOfSentence(true);
assure("gotoEndOfSentence(): failed", bSuccess);
{
String string = xTextCursor.getString();
assure("gotoEndOfSentence(): wrong string: " + string,
"This is a sentence.".equals(string));