ASP.NET MVC: How to Start Unit Testing

ASP.NET MVC: How to Start Unit Testing


 

Why Unit Testing?

Why should you write Unit Tests? Here are some points which are mostly mentioned if somebody argues against Unit Tests

  • It is time-consuming
  • It interrupts your work
  • They are unnecessarily
  • They are complicated
  • Some code cannot be tested

So, why should you write Unit Tests? The guys from Agitar Technologies gives you a starting point to think about - http://www.agitar.com/solutions/why_unit_testing.html

Ok, I want to write Unit Tests, but what should I test? Arnt Berge wrote down his thought about what should be tested in ASP.NET MVC - http://blogg.bouvet.no/2011/04/05/thoughts-on-unit-testing-in-asp-net-mvc/

How to start Unit Testing?

All right, I'm convinced, where should I start? Here are some links, where Unit Testing ASP.NET MVC applications is the central point.


See Also


Other Languages

This article is also available in the following languages:

Deutsch (de-DE)

Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Carsten Siemens edited Revision 12. Comment: Added tags: has TOC, has See Also

  • Horizon_Net edited Revision 9. Comment: fixed broken link

  • Horizon_Net edited Revision 8. Comment: fixed broken link

  • Horizon_Net edited Revision 6. Comment: added link to german version, updated formatting

  • Horizon_Net edited Revision 5. Comment: added see also section

  • Horizon_Net edited Revision 4. Comment: Added language tag in header

  • Horizon_Net edited Revision 3. Comment: added language tag

  • Horizon_Net edited Revision 2. Comment: Removed first header and added tags.

  • Ed Price - MSFT edited Original. Comment: Added TOC and tag. Updated title casing.

Page 1 of 1 (9 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • nice article

  • Carsten Siemens edited Revision 12. Comment: Added tags: has TOC, has See Also

  • Nice article !!!

  • Good Article.

  • @Yatajga Thanks for the hint. I've fixed this link.

  • Horizon_Net edited Revision 9. Comment: fixed broken link

  • Horizon_Net edited Revision 8. Comment: fixed broken link

  • The link "Creating Unit Tests for ASP.NET MVC Applications" not work.

  • Horizon_Net edited Revision 6. Comment: added link to german version, updated formatting

  • Horizon_Net edited Revision 5. Comment: added see also section

  • Horizon_Net edited Revision 4. Comment: Added language tag in header

  • Horizon_Net edited Revision 3. Comment: added language tag

  • Horizon_Net edited Revision 2. Comment: Removed first header and added tags.

  • Ed Price - MSFT edited Original. Comment: Added TOC and tag. Updated title casing.

Page 1 of 1 (14 items)