Nunit

Post on 25-May-2015

161 views 0 download

Tags:

Transcript of Nunit

UNIT TESTINGUsing

NUNIT

BancTec

BancTec

AgendaAgenda

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