public void TestClearAll() { TextEditorData data = Create(@"1 @2 3 @4 5 @6 7 $8 9"); Assert.AreEqual(3, data.Lines.Count(l => data.Document.IsBookmarked(l))); BookmarkActions.ClearAll(data); Assert.AreEqual(0, data.Lines.Count(l => data.Document.IsBookmarked(l))); }
public void TestNextBookmark() { TextEditorData data = Create(@"1 @2 3 @4 5 @6 7 $8 9"); BookmarkActions.GotoNext(data); Assert.AreEqual(2, data.Caret.Line); BookmarkActions.GotoNext(data); Assert.AreEqual(4, data.Caret.Line); BookmarkActions.GotoNext(data); Assert.AreEqual(6, data.Caret.Line); BookmarkActions.GotoNext(data); Assert.AreEqual(2, data.Caret.Line); }
void IBookmarkBuffer.NextBookmark() { BookmarkActions.GotoNext(hexEditor.HexEditorData); }
void IBookmarkBuffer.PrevBookmark() { BookmarkActions.GotoPrevious(hexEditor.HexEditorData); }
public BookmarkUpdatedEventArgs(BookmarkActions bookmarkAction, Type bookmarkType) { BookmarkAction = bookmarkAction; BookmarkType = bookmarkType; }