protected virtual TextIndex GetNextIndex(TextIndex currentIndex)
        {
            var nextIndex = TextIndexUtils.ToStringIndex(currentIndex);
            var nextState = TextIndexUtils.ReverseState(currentIndex.State);

            return(new TextIndex(nextIndex, nextState));
        }
Beispiel #2
0
 public void TestReverseState(TextIndex.IndexState state, TextIndex.IndexState actualState)
 {
     Assert.AreEqual(TextIndexUtils.ReverseState(state), actualState);
 }