branch: externals/csharp-mode commit 0f65654c5102d21198164299d950d75a1230424e Author: Vasilij Schneidermann <m...@vasilij.de> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Add regression test --- csharp-mode-tests.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el index 584da2d..5fb917c 100644 --- a/csharp-mode-tests.el +++ b/csharp-mode-tests.el @@ -377,6 +377,15 @@ (should (equal orig-content indented-content)))) +(ert-deftest region-directive-comment-movement () + (find-file "test-files/region-fontification.cs") + (csharp-mode) + (goto-char (point-min)) + (search-forward "#region ") + (forward-word 1) + (forward-word -1) + (should (looking-at "fontifies"))) + ;;(ert-run-tests-interactively t) ;; (local-set-key (kbd "<f6>") '(lambda () ;; (interactive)