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

Maintainable and runs fast

Unit tests should be written in a manner that allows them to run quickly. The test should be easy to implement and any member of a development team should be able to run it. Because software applications are dynamic and continue to evolve, tests for the code base should be easy to maintain as the underlying code under test changes. To have tests that run faster, try to minimize dependencies as much as you can.

Oftentimes, most programmers get this aspect of unit testing wrong, they write unit tests that have inherent dependencies, which in turn makes the tests slower to run. A quick rule of thumb to give you a clue that you are doing something wrong with your unit test, is that they are very slow to run. Also, when ...

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