Home > Microsoft .Net Development Tips > Chapter Downloads > Book excerpt: Pragmatic unit testing in C# with NUnit
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

CHAPTER DOWNLOADS

Book excerpt: Pragmatic unit testing in C# with NUnit


Andy Hunt and Dave Thomas
04.12.2004
Rating: --- (out of 5)


.NET Essentials Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


WhatIs.com defines unit testing as a process in which "the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation." Unit testing can be a manual process or an automated one -- but, either way, it can be a time-consuming, documentation-filled endeavor.

For .NET programmers using Visual Studio 2005, the only way to take advantage of unit testing functionality is by purchasing Visual Studio 2005 Team Edition for Software Testers. As a result, open-source unit testing tools such as NUnit proved to be quite popular. (Microsoft addressed this deficiency by adding integrated unit testing to Visual Studio 2008 Professional Edition.)

Pragmatic Unit Testing in C# with NUnit introduces ways that C# programmers can introduce better tests, and catch more bugs, without adopting methodologies like test-driven development or extreme programming.

The first chapter of the book provides an introduction to unit testing -- what it is, how it works, what benefits it offers and how it affects productivity. Authors Andy Hunt and Dave Thomas end the chapter by dispelling some common myths about unit testing, such as "It takes too long to run the tests" and "I don't really know how the code is supposed to behave so I can't test it."

Read "Introduction to unit testing"in this PDF file.


Excerpted from Pragmatic Unit Testing in C# with NUnit, First Edition (ISBN: 9780974514024) by Andy Hunt and Dave Thomas.
Copyright © 2004. Published by O'Reilly Media Inc.. Reprinted with permission.

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
.NET Framework security best practices
New features in Windows 7 bring new UI considerations for developers
Podcast: Windows CardSpace authors speak
Book excerpt: Java EE and .NET security interoperability
Book excerpt: Advanced Windows Debugging
Security interoperability with .NET/WSE and WebLogic Workshop 8.1
Windows Developments: Product news, December 2007
How to avoid regression bugs while adding new features
VB code: New additions, November 2007
VB code: Application security downloads
Generate RSA public and private keys, export to XML

Chapter Downloads
Advanced Windows Debugging Book Chapter and Podcast
Book excerpt: Murach's VB 2008
Book excerpt: Building personalized solutions in SharePoint 2007
Book excerpt: Java EE and .NET security interoperability
Book excerpt: Building document management solutions in SharePoint 2007
Book excerpt: .NET Framework Design Guidelines
Book excerpt: Advanced Windows Debugging
Book Excerpt: Executing activities in Windows Workflow Foundation
Book excerpt: Hands-on Windows Communication Foundation
Book excerpt: SharePoint 2007 and content types

Application Testing and Security
Test-driven development in .NET yields complete unit test coverage
How to write installers in Vista that work correctly under UAC
How to elevate programs' privileges correctly using Vista's UAC
Internet Explorer 8 beta's development tools add source visualizations
Microsoft previews new features in Visual Studio 2010
Advanced Windows Debugging Book Chapter and Podcast
Book excerpt: Advanced Windows Debugging
Security interoperability with .NET/WSE and WebLogic Workshop 8.1
How to avoid regression bugs while adding new features
NDepends: How you look at code

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
common test platform  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts