9. Commenter Test
Define a Test Method
Add the testCommenter()
method to the SimpleCodeInsightTest
class previously defined. This test constructs a Simple Language properties file containing one line, with the virtual caret positioned at the beginning of the line. The test calls the commenter to insert a comment character at the caret, then verifies the results. It again calls the line comment action to remove the comment character and verifies the results.
Run the Test
Run the test and make sure it's green.
Last modified: 29 δΉζ 2022