protected virtual TextIndex GetNextIndex(TextIndex currentIndex) { var nextIndex = TextIndexUtils.ToStringIndex(currentIndex); var nextState = TextIndexUtils.ReverseState(currentIndex.State); return(new TextIndex(nextIndex, nextState)); }
public void TestReverseState(TextIndex.IndexState state, TextIndex.IndexState actualState) { Assert.AreEqual(TextIndexUtils.ReverseState(state), actualState); }