© Bruce Johnson 2020
B. JohnsonEssential Visual Studio 2019https://doi.org/10.1007/978-1-4842-5719-7_4

4. Refactoring Code

Bruce Johnson1 
(1)
ObjectSharp Consulting, Toronto, ON, Canada
 

In Chapter 3, “Unit Testing,” red/green/refactor was introduced as a development paradigm. Through unit testing, it was possible to achieve the red and green portion of that triumvirate. What was missing from the discussion was refactoring, which, fortunately for people who read books from front to back, is the topic of this chapter. After a brief description of the function and form of refactoring, you will learn about the many different tools that Visual Studio 2019 brings to bear to help with this step.

What Is Refactoring

To start, let’s consider refactoring as ...

Get Essential Visual Studio 2019: Boosting Development Productivity with Containers, Git, and Azure Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.