I have been a .Net developer for a long time and try to wrap my head around real, practical unit testing.
In particular, I am considering unit testing of ASP.Net MVC 3 projects.
I read a decent amount about it and I think that I understand it at the academic level (i.e. basically guarantees that the changes you make will not destroy other things). However, all the tests I've seen in the examples are trivially stupid things that would be pretty obvious anyway. (Does this controller return a view with this name?).
So, maybe I missed something or just didnβt see really good test examples or anything else, but it really looks like a shitty lot of extra work and complexity with ridicule, ioc, etc., and I'm just not seeing counter balance.
Teach me please :)
source share