Beispiel #1
0
        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);
        }
Beispiel #3
0
 void IBookmarkBuffer.NextBookmark()
 {
     BookmarkActions.GotoNext(hexEditor.HexEditorData);
 }
Beispiel #4
0
 void IBookmarkBuffer.PrevBookmark()
 {
     BookmarkActions.GotoPrevious(hexEditor.HexEditorData);
 }
Beispiel #5
0
 public BookmarkUpdatedEventArgs(BookmarkActions bookmarkAction, Type bookmarkType)
 {
     BookmarkAction = bookmarkAction;
     BookmarkType   = bookmarkType;
 }