NUnit Pocket Reference

Bill Hamilton

  • 出版商: O'Reilly
  • 出版日期: 2004-09-28
  • 售價: $640
  • 貴賓價: 9.5$608
  • 語言: 英文
  • 頁數: 94
  • 裝訂: Paperback
  • ISBN: 0596007396
  • ISBN-13: 9780596007393
  • 已過版

買這商品的人也買了...

相關主題

商品描述

Description:

Few .NET developers have the luxury of unlimited code testing once their application is complete, and rushing through the testing process is both problematic and stressful. The open source NUnit framework provides an excellent and efficient way to test and improve .NET code as it's written, saving hundreds of QA hours and headaches.

NUnit is one of the most mature and widely-used .NET open source projects even Microsoft uses it internally. NUnit is a unit-testing framework for all .Net languages. Written entirely in C#, NUnit takes advantage of many .NET language features, such as custom attributes and other reflection related capabilities. It automates unit testing and reduces the effort required to frequently test code while developing it. NUint is invaluable for .NET developers in test-driven development under agile methodologies such as Extreme Programming (XP) as well as for developers who use for unit testing for software quality assurance. Unfortunately, some of those valuable hours saved by using NUnit can be wasted trying to master this powerful but under-documented framework

Proof that good things come in small packages, the NUnit Pocket Reference is a complete reference to NUnit, filling in the blanks left by the existing documentation and online discussion. It offers developers everything they need to know to install, configure, and use NUnit; the NUnit user interface; and a reference to the NUnit framework classes in a slim but well-organized package. This handy little book even offers practical, real world NUnit examples. And with the NUnit Pocket Reference, IT managers will know to expect when they implement unit testing in their projects. It is the only book you'll need on this popular and practical new open source framework.

 

Table of Contents:

Introduction 

      Unit Testing 
                Testing Software 
                What Is Unit Testing and Where Did It Come from?
                Test-Driven Development 
                Test Harness 
                Unit Test Design and Development Overview
                Best Practices for Unit Testing

      What Is NUnit?
            How Does NUnit Work?

      Setting Up NUnit
            Prerequisites
            Programming Languages
            Getting NUnit
            Installing NUnit
            Configuring NUnit
            Manual Installation
            Navigating the Source Code

      Unit Testing with NUnit
            Creating a Test
            Running a Test
            Assertions
            Other Testing Elements

      Test Runner GUI
            User Interface
            NUnit Projects
            Running Tests
            Running the Test Runner GUI from the Command Line

      Test Runner Console

      Debugging with NUnit

      Testing with Mock Objects

      Compatibility
            Using NUnit 2.1 Tests with NUnit 2.2
            Using NUnit 2.0 Tests with NUnit 2.2
            Upgrading from NUnit 1.x to 2.2
            Changes from NUnit 2.1 to 2.2
            Changes from NUnit 2.0 to 2.1

      Extending NUnit
            Integrating NUnit with Visual Studio .NET
            NUnit AddIn for Visual Studio .NET
            VSNUnit
            NUnitAsp
            NCover
            NAnt
            Nantpad

      Index