Tag Archives: unit testing

c# unit testing: code coverage

ok unit testing in vs2010 was really easy… setting up code coverage analysis is simple too…

  1. edit the local.testsettings
  2. goto Data and Diagnostics
  3. enable Code Coverage
  4. configure it
  5. add the dll
  6. tada: done

just run the tests again and look at the code coverage…

c# unit testing

I thought, after using nant, it is time to use unittests in my c# code. The main idea was to try out test driven implementation methods for my next, small project.

Ok asked google about how to implement unit testing in my maschine… how was it called? NUnit? ok found something different and im really proud on microsoft… a unit testing framework is include to Visual Studio 2010… and its really easy…

Crossread the following link and understood it: http://www.dreamincode.net/forums/topic/108976-c%23-unit-testing-basics/