how can I write a test to verify that my node substitution actions are working correctly?
I have four actions implemented.
- remove all defaults: clears the substitution menu (btw. the confluence page says that this "removes all default actions and adds only those actions which are specified in the actions language", while the MPS Book says about this action "This action type lets you remove all items that were provided by the substitution menu default construction mechanism." What is true?!
- three actions that add custom items very selectively
I tried to use a NodeTest and figured the @check scope@ annotation might be the right way to go, but as soon as I add this annotation, my condition for my action is not even hit anymore. In other words, without the annotion, I can see by invoking the substituion menu manually, that my action is applied and works as expected. With the annotation, however, the action is not invoked anymore.
My questions are:
- Is this even the reight way to test my action?
- If yes, can somebody maybe explain why the action is not invoked once there is an annotation?