The Way of Unit Testing in C#

Author: (USA) Thomas
Translator: Chen Weizhu, Tao Wen
United States / USA
Publisher:
Publish Date: 2005-01-01
Features: The Programmer's Practice Trilogy series includes four books, introducing some tools that practical programmers and successful teams use. Practical programmers utilize feedback to guide development and drive their personal development processes. When coding, useful feedback comes from "unit testing." To test a bridge, one doesn't just drive a car through the middle on a sunny day and consider the test complete. Yet many programmers are using this testing method—calling a single successful run "testing." In reality, practical programmers should be able to do better. Real-time unit testing simplifies the development process. It allows for more optimized design while significantly reducing the time spent debugging code. From this book, you can learn:
· How to write better, faster, and bug-free code.
· How to find hidden bugs and learn how to fix them.
· How to test a small piece of code without using the entire project.
· How to use JUnit to simplify test code.
· How to conduct efficient testing in a development team.
This book describes unit testing using the free, Java-based program library JUnit; these techniques are also applicable to other languages and frameworks (the trilogy also includes a sister book for Java, The Art of Unit Testing in C#—Using NUnit). The Programmer's Practice Trilogy is a series of four small books designed to help programmers solve specific problems they encounter in their daily work, covering fundamental knowledge essential for modern software development. This series not only showcases practical techniques and tools but also embodies the development philosophy upheld by the authors in their renowned work, The Art of Programming: From Novice to Expert. All of this serves as a powerful tool to help developers and teams carry out normal development, continuously improve, and achieve high development efficiency.
The Art of Unit Testing in C#—Using NUnit is the second book in the trilogy (this book also has a Java version, The Art of Unit Testing in Java—Using JUnit), explaining how to perform unit testing in C# using the free, open-source NUnit program library. Its content is widely applicable to other languages and frameworks as well. The main topics include: how to write more efficient code with fewer bugs; how to find hidden bugs and eliminate them; how to test code fragments without involving the entire project; how to use NUnit to simplify test code; how to conduct efficient testing in a team, and more.
This book is primarily suitable for C# programmers with some experience in coding and design but limited experience in unit testing.

📌 Related Posts