Thursday, May 31, 2018

High-Quality Automated Tests — Top 10 ReSharper Coding Styles

This is the next article from the High-Quality Automated Tests series. In the last publications, I showed you how you could apply coding styles through two popular technologies- EditorConfig and StyleCop. This one will be dedicated to another favorite tool among .NET community- ReSharper. It should be noted that it is not free, however since many people use it any way I think it worth mentioning how it can help you in the battle with the inconsistent ugly code.

File Layout

One neat feature of ReSharper is that it can check whether the order of your properties, fields, methods, events, etc. is correct. If you place your methods above your constructors, a warning will be displayed.



from DZone.com Feed https://ift.tt/2H1QeHe

No comments:

Post a Comment