Ads by The Lounge
Partners
Follow DimeCasts
Standard
iPhone
Casts Tags
Unit Testing (6)
Linq2Sql (6)
LinqPad (5)
NUnit (4)
SVN (4)
Mocking (3)
IoC (3)
Rhino Mocks (3)
Brownfield (3)
Visual Studio (2)
MVC (2)
XLinq (2)
New Feature (2)
Ninject (2)
Moq (1)
C# 3.0 (1)
Linq (1)
ASP.NET (1)
NAnt (1)
TFS (1)
Dev Tools (1)
Windsor Castle (1)
Casts Levels
Beginner (19)
Intermediate (15)
Advanced (3)
Casts Authors
Derik Whittaker (30)
Kyle Baley (3)
Justin Etheredge (2)
Kirstin Juhl (1)
Donald Belcham (1)
Getting Around
Current Episodes
Most Viewed
Most Downloaded
Archived Episodes
Suggest an Episode
Sponsorship
About Our Authors
About DimeCasts.Net
Follow us at
@DimeCastsDotNet
# 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:
NUnit.org
Images/Screen Shots:
Methods to be tested
Testing via Asserts
Testing using ExpectedException attribute
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: *