Exemplo n.º 1
0
        public void SimpleFind()
        {
            var worker = new FindReplaceWorker(prop_service);
            worker.Document = OriginalDocument;
            worker.SearchText = "abc";

            var expected_offsets = new int[]{0, 64, 68, 72, 80, 84, 88};

            worker.FindNext();
            DoTest(worker.SearchResults, expected_offsets);
        }
Exemplo n.º 2
0
        public void RegExFind()
        {
            var worker = new FindReplaceWorker(prop_service);
            worker.Document = OriginalDocument;
            worker.UseRegex = true;
            worker.SearchText = @"abc\s+";

            var expected_offsets = new int[]{64, 68, 80, 84};

            worker.FindNext();
            DoTest(worker.SearchResults, expected_offsets);
        }