Partners
Visit CodeBetter.Com for great .Net content
Visit Devlicio.us for great .Net content
Where your Ideas are Heard Around the World

Follow DimeCasts
Standard
iPhone



# 3 - Creating tests with NUnit


5/27/2008
Level: Beginner
Tags: NUnit Unit Testing
Comments: (2)
Author:
Derik Whittaker


In this episode we will cover the basics on how to create various unit test using the NUnit testing framework.  We will also review the different Assert helper classes that are part of the testing framework.
Click here to Watch this Episode

Download (20.20 MB) (12:24) (1440x900)
Download (13.37 MB) (12:24) (960x600)

Links/Resources:

Images/Screen Shots:


Methods to be tested
Shows the various methods that will be tested in the demo

Testing via Asserts
Shows the code for testing using Asserts

Testing using ExpectedException attribute
Shows the code for testing using the ExpectedException Attributed

Comments: (2)

Tr3v said....
why do you use if(items.Count == 5) { return true; } return false; instead of just using return (items.Count == 5); ?

5/29/2008 4:00:08 AM

DimeCastsDotNet said....
@Tr3v

Apart from being a very simple demo app, there is no reason. In a real app I would assume i would do that.

5/29/2008 12:01:01 PM


Name: *
Email (not displayed): *
Url:
Comments: *



Submit this story to DotNetKicks