Problem solve Get help with specific problems with your technologies, process and projects.

Unit Testing: Ch. 14 of Professional Visual Studio 2005 Team System

This chapter looks at the ins and outs of unit testing in .NET, from writing tests to analyzing the results and making sure a unit test covers an application's entire code base.

Microsoft's Visual Studio 2005 Team System (VSTS) encourages collaboration throughout the software development lifecycle. Separate editions of the product exist for testers, developers, architects and database professionals (or "data dudes").

Professional Visual Studio 2005 Team System offers an overview of the product. The authors then present guidance for using VSTS for modeling, designing, and coordinating enterprise solutions. There are also hints for getting the most out of development scenarios and automation scripting in VSTS.

Chapter 14, Unit Testing with the Unit Test Framework, describes the unit test capabilities that are available in both the Developer and Tester versions of VSTS. The chapter begins with a look at the overall concept of unit testing, which is getting as granular as possible, and at the idea of test-driven development, in which tests are written before code. From there the authors cover the syntax of writing, executing and analyzing unit tests, how VSTS support unit testing in ASP.NET apps and how to spot the parts of your code base that are not covered by unit tests.

Read the rest of the excerpt in this PDF.

MORE: Click here to read Chapter 8 of this book, "Managed Code Analysis."


Excerpted from the Wrox Press book, Professional Visual Studio 2005 Team System (ISBN 0-7645-8436-7) by Jean-Luc David, Tony Loton, Erik Gunvaldson, Christopher Bowen, Noah Coad and Darren Jefford.
Copyright © Nov. 15, 2006. Published by John Wiley & Sons Inc.. Reprinted with permission.

Dig Deeper on Team development with Visual Studio Team System

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.