NUnit Pocket Reference
Author: William Hamilton
Few .NET developers have the luxury of unlimited codetesting 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 | 1 | |
Unit Testing | 3 | |
Testing Software | 3 | |
What Is Unit Testing and Where Did It Come from? | 7 | |
Test-Driven Development | 9 | |
Test Harness | 10 | |
Unit Test Design and Development Overview | 10 | |
Best Practices for Unit Testing | 11 | |
What Is NUnit? | 12 | |
How Does NUnit Work? | 12 | |
Setting Up NUnit | 13 | |
Prerequisites | 13 | |
Programming Languages | 14 | |
Getting NUnit | 14 | |
Installing NUnit | 14 | |
Configuring NUnit | 16 | |
Manual Installation | 17 | |
Navigating the Source Code | 18 | |
Unit Testing with NUnit | 18 | |
Creating a Test | 21 | |
Running a Test | 25 | |
Assertions | 26 | |
Other Testing Elements | 31 | |
Test Runner GUI | 38 | |
User Interface | 38 | |
NUnit Projects | 49 | |
Running Tests | 58 | |
Running the Test Runner GUI from the Command Line | 64 | |
Test Runner Console | 66 | |
Debugging with NUnit | 70 | |
Testing with Mock Objects | 73 | |
Compatibility | 74 | |
Using NUnit 2.1 Tests with NUnit 2.2 | 74 | |
Using NUnit 2.0 Tests with NUnit 2.2 | 74 | |
Upgrading from NUnit 1.x to 2.2 | 75 | |
Changes from NUnit 2.1 to 2.2 | 76 | |
Changes from NUnit 2.0 to 2.1 | 77 | |
Extending NUnit | 79 | |
Integrating NUnit with Visual Studio .NET | 79 | |
NUnit Addln for Visual Studio .NET | 79 | |
VSNUnit | 82 | |
NUnitAsp | 83 | |
NCover | 83 | |
NAnt | 84 | |
Nantpad | 84 | |
Index | 85 |
See also: Plain Lives in a Golden Age or Travel Perspectives
Mathematics For Electrical Engineering And Computing
Author: Mary Attenborough
Mathematics for Electrical Engineering and Computing embraces many applications of modern mathematics, such as Boolean Algebra and Sets and Functions, and also teaches both discrete and continuous systems - particularly vital for Digital Signal Processing (DSP). In addition, as most modern engineers are required to study software, material suitable for Software Engineering - set theory, predicate and prepositional calculus, language and graph theory - is fully integrated into the book.
Excessive technical detail and language are avoided, recognising that the real requirement for practising engineers is the need to understand the applications of mathematics in everyday engineering contexts. Emphasis is given to an appreciation of the fundamental concepts behind the mathematics, for problem solving and undertaking critical analysis of results, whether using a calculator or a computer.
The text is backed up by numerous exercises and worked examples throughout, firmly rooted in engineering practice, ensuring that all mathematical theory introduced is directly relevant to real-world engineering. The book includes introductions to advanced topics such as Fourier analysis, vector calculus and random processes, also making this a suitable introductory text for second year undergraduates of electrical, electronic and computer engineering, undertaking engineering mathematics courses.
The book is supported by a comprehensive website, featuring:
• plotXpose software (for equation solving, and drawing graphs of simple functions, their derivatives, integrals and Fourier transforms)
• over 60 pages of "Background Mathematics" reinforcing introductory material forrevision purposes in advance of your first year course
• problems and projects (linking directly to the software)
• a complete worked solutions manual (password protected)
Dr. Attenborough is a former Senior Lecturer in the School of Electrical, Electronic and Information Engineering at South Bank University. She is currently Technical Director of The Webbery - Internet development company, Co. Donegal, Ireland.
No comments:
Post a Comment