I am new to unit testing. I want to know to what level do I need to do unit testing. I mainly work on web applications. I am currently working through an MVC book and they showed a couple of unit tests for grid paging, and populating a menu control. Does one have to test business object properties, methods, data layer, stored procedures, etc? I don't want to look paranoid and test everything. If it is best practices then I will do it.
For example, if a first name property is supposed to be 50 characters long, and may contain only alpha characters then do I need to test both?
I am also using the Yahoo User Interface library, do I need to test this as well?
What UI unit testing tools are available? I have heard that there are frameworks that allow you to mock a whole even if it is not there and then you can test the page this way? What frameworks for UI testing are available?
I would like to hear as much opinions as possible? Any suggested books for beginners with many samples would be appreciated.
Thanks