Skip to Content
C# and .NET Core Test-Driven Development
book

C# and .NET Core Test-Driven Development

by Ayobami Adewole
May 2018
Intermediate to advanced content levelIntermediate to advanced
300 pages
7h 35m
English
Packt Publishing
Content preview from C# and .NET Core Test-Driven Development

Refactoring legacy code

Legacy source code is the code that was written by you or someone else usually without tests or using an old framework, architecture, or technology. Such a code base can be difficult to rewrite or maintain. It can sometimes be tangled code that cannot be easily read and understood and as such is very difficult to change.

When faced with the daunting task of maintaining a legacy code base, especially a code base written without adequate or proper testing, writing unit tests for such code can be difficult, and a waste of time, and can result in a lot of hard work. However, using a mocking framework can greatly simplify the refactoring process, as the new code being written can be isolated from the existing code and tested ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Design Patterns with C# and .NET Core

Hands-On Design Patterns with C# and .NET Core

Gaurav Aroraa, Jeffrey Chilberto
.NET Core in Action

.NET Core in Action

Dustin Metzgar

Publisher Resources

ISBN: 9781788292481Supplemental Content