ASP.NET MVC: How to start Unit Testing






4.81/5 (10 votes)
ASP.NET MVC: How to start Unit TestingWhy Unit Testing?Why should you write Unit Tests? Here are some points which are mostly mentioned if
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.
- Creating Unit Tests for ASP.NET MVC Applications
- Using TDD with ASP.NET MVC
- ASP.NET MVC Framework - Testing by Simone Chiaretta
- How to Unit Test ASP.NET MVC Controllers by Jag Reehal
- Testing Routes and URL Generation in ASP.NET MVC by Brad Wilson