Three CodeRush Unit Test Runner improvements
The CodeRush Unit Test Runner has several improvements in the upcoming major update.
The CodeRush Unit Test Runner has several improvements in the upcoming major update.
You might have already learned that CodeRush suggests several code issues that highlight the switch (Select in VB) statement with hints and warnings when it has suspicious code. For example, when the switch statement handles only a subset of the possible enumeration values it is checking for, this may be a sign of incomplete code.
Until recently, there were no code fixes of those code issues. Now, they appear:
In addition to the usual Spell Checker CodeRush feature, you can find and review spelling errors from the entire solution in the dedicated Spell Checker tool window:
The Categories support has been already introduced for the Unit Test Runnerin the current CodeRush release. Now, there are two useful actions added for creating specific keyboard shortcuts to run or debug test cases in the specific category:
See other actions and shortcuts for the CodeRush Unit Test Runner.
—– Products: CodeRush Pro Versions: 12.1 and up VS IDEs: 2008 and up Updated: Apr/09/2012 ID: U010The Smart Constructor CodeRush feature allows you to add constructors to the current class or structure, and pass type members, like fields and properties for initialization through its parameters. To choose fields and properties that will be passed to a new constructor, the following dialog is used:
The DXCore Visualize toolbar now has a new button – Clear Solution Cache:
Now, the CodeRush Click Identifier feature can show you not only the signature of a member but its source code, if any:
This might be useful to quickly analyze the functional algorithm of the referenced member without navigating to it.
Note that this is an optional behavior – you may toggle its availability on the Editor | Navigation | Click Identifier options page in the CodeRush Options Dialog.
—– Products: CodeRush Pro Versions: 12.1 and up VS IDEs: 2008 and up Updated: Mar/24/2012 ID: U006An options page for type declarations positioning has been introduced. You can change the target position for classes, structures and interfaces created by CodeRush code generation code providers: