UNIT TESTINGUsing
NUNIT
BancTec
BancTec
Agenda
01
02
03
What is Unit
Testing?
What is Nunit?
How to work with
Nunit?
BancTec
What is Unit Testing?
Unit testing is a method by which individual units
of source code, sets of one or more computer program
modules together with associated control data, usage
procedures, and operating procedures, are tested to
determine if they are fit for use. Intuitively, one can
view a unit as the smal.lest testable part of an
application
BancTec
What is NUnit?
NUnit is a unit-testing framework for all .NET languages. The current
production release, version 2.6, is the seventh major release of this xUnit
based unit testing tool for Microsoft .NET. It is written entirely in C# and
has been completely redesigned to take advantage of many .NET
language features, for example custom attributes and other reflection
related capabilities. NUnit brings xUnit to all .NET languages.
BancTec
How does it work?
• TestFixture
• SetUp
• TearDown
• Test
• ExpectedException
• Ignore
BancTec
THANKS
BancTec
THANKS
BancTec

Nunit

  • 1.
  • 2.
    Agenda 01 02 03 What is Unit Testing? Whatis Nunit? How to work with Nunit? BancTec
  • 3.
    What is UnitTesting? Unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine if they are fit for use. Intuitively, one can view a unit as the smal.lest testable part of an application BancTec
  • 4.
    What is NUnit? NUnitis a unit-testing framework for all .NET languages. The current production release, version 2.6, is the seventh major release of this xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities. NUnit brings xUnit to all .NET languages. BancTec
  • 5.
    How does itwork? • TestFixture • SetUp • TearDown • Test • ExpectedException • Ignore BancTec
  • 6.
  • 7.

Editor's Notes