|
70 | 70 | ;; this replaces the manual test of |
71 | 71 | ;; test-files/fontification-test-compiler-directives.cs, but file |
72 | 72 | ;; has been kept around to assist manual testing/verification. |
| 73 | + (assess-face-in-file= "test-files/fontification-test-compiler-directives.cs" |
| 74 | + "strReference" 'font-lock-string-face |
| 75 | + "strVerification" 'font-lock-string-face |
| 76 | + "singleQuote" 'font-lock-string-face |
| 77 | + "doubleQuote" 'font-lock-string-face) |
| 78 | + |
73 | 79 | (assess-face-in-text= |
74 | 80 | "#region test\nbool bar = true;" |
75 | 81 | ;; should not be interpreted as string because of trailing \! |
|
91 | 97 | ))) |
92 | 98 |
|
93 | 99 | (ert-deftest fontification-of-compiler-directives-after-comments () |
94 | | - ;; this replaces the manual test of |
95 | | - ;; test-files/fontification-test-compiler-directives-with-comments.cs, but file |
96 | | - ;; has been kept around to assist manual testing/verification. |
97 | 100 | (assess-face-in-file= "./test-files/fontification-test-compiler-directives-with-comments.cs" |
98 | 101 | "case1" 'font-lock-comment-face |
99 | 102 | "case2" 'font-lock-comment-face)) |
100 | 103 |
|
| 104 | +(ert-deftest fontification-of-method-names () |
| 105 | + (assess-face-in-file= "./test-files/imenu-method-test.cs" |
| 106 | + "OpenWebServicesAsync" 'font-lock-function-name-face |
| 107 | + "ToString" 'font-lock-function-name-face |
| 108 | + "Equals" 'font-lock-function-name-face |
| 109 | + "AbstractMethod" 'font-lock-function-name-face |
| 110 | + "UnsafeCopy" 'font-lock-function-name-face)) |
| 111 | + |
101 | 112 | (defun list-repeat-once (mylist) |
102 | 113 | (append mylist mylist)) |
103 | 114 |
|
|
0 commit comments