Last post Aug 13, 2010 05:01 AM by misuk11
Aug 12, 2010 09:52 AM|misuk11|LINK
Im working on a project that must use NUnit for untit testing. Im pretty new to this, are there any good tutorials online that anyone knows about ? also any code examples. The NUnit website seems pretty poor in this respect
Aug 12, 2010 09:59 AM|vinay13mar|LINK
plz check the link
Aug 12, 2010 10:07 AM|ketan_al|LINK
Please refer following
hope this helps
Aug 12, 2010 10:51 AM|misuk11|LINK
Ive had a look at some of the examples, but im still a little confused. Ive setup a test project and Have right clicked the project and selected
Add -> new Item -> unitTest
Visual studio the adds a unit test class that uses Microsoft.VisualStudio.TestTools.UnitTesting
If I subsequently add a reference to NUnit, I get clashes when trying to compile.
Should i be manually adding the NUnit classes or is there an option somewhere to automatically add the NUnit classes ?
Im really new to this, having never used any unit testing before, so please bear with me
Aug 12, 2010 10:58 AM|ketan_al|LINK
Aug 12, 2010 11:20 AM|misuk11|LINK
I think I have some sort of mental block with actually understanding how unit testing works. Ive set it up and tried to add my first unit test for a class ive created. In this class there is a method which doesnt return anything (void) it just gets some
stuff from a database and iterates over the result set and does some processing for each result. How can I test something that has no results ? Sorry to appear dumb, but im finding it hard to get my head around this, hopefully the penny will drop at some
here is some pseudo code for the method i want to test
public void StartProcess()
Aug 12, 2010 11:24 AM|ketan_al|LINK
Aug 13, 2010 05:01 AM|misuk11|LINK
The class I want to test has 1 public method and several private methods. How do I test private methods of a class ?