Is there any good book or material which covers C# unit testing using mocks in depth?
How about The Art of Unit Testing. This is .NET specific, and should be fairly up to date.
There is a rather good book describing how to use NUnit and NMock to do C# unit testing:
There are lots of documents on the nmock web site:
http://www.nmock.org/tutorial.html http://www.nmock.org/advanced.html
I've found the following articles (especially the first one) from Stephen Walter pretty useful.
http://weblogs.asp.net/stephenwalther/archive/2008/06/11/tdd-introduction-to-moq.aspx http://weblogs.asp.net/stephenwalther/archive/2008/03/22/tdd-introduction-to-rhino-mocks.aspx http://weblogs.asp.net/stephenwalther/archive/2008/03/16/tdd-introduction-to-typemock-isolator.aspx
Extreme Programming Adventures in C# is well rated and deals with Mock Objects. It could be a bit outdated (current edition is 2004).