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

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