For the modern application developer, a typical workflow involves a series of steps repeated over and over again. These steps are colloquially known as red/green/refactor. You create a unit test for the functionality under development that fails. This causes a red to appear in the unit test results. Next you write enough code to make the unit test pass, and then rerun all your tests. If all has gone well, you should have a green (all tests pass). The final step is to refactor the code you wrote. Neatening it up. Locate duplicated code and convert it into separate methods. ...
3. Unit Testing
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.