Nunit

6
UNIT TESTING Using NUNIT BancTec BancTec

Transcript of Nunit

Page 1: Nunit

UNIT TESTINGUsing

NUNIT

BancTec

BancTec

Page 2: Nunit

AgendaAgenda

01

02

03

What is Unit Testing?

What is Nunit?

How to work with Nunit?

BancTec

Page 3: Nunit

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

Page 4: Nunit

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

Page 5: Nunit

How does it work?

• TestFixture• SetUp• TearDown• Test• ExpectedException• Ignore

BancTec

Page 6: Nunit

THANKS

BancTec