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:
There are two actions added to repeat the last operations:
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:
The Convert to Size refactoring from DevExpress Refactor! Pro consolidates selected numeric parameters into a System.Drawing.Size (System.Windows.Size in WPF projects) or SizeF object. It might be useful to combine two parameters into a single parameter, reducing the overall number of method parameters and increasing code readability.