views:

307

answers:

5

Is there any good book or material which covers C# unit testing using mocks in depth?

+5  A: 

How about The Art of Unit Testing. This is .NET specific, and should be fairly up to date.

Marc Gravell
+8  A: 

There is a rather good book describing how to use NUnit and NMock to do C# unit testing:

Pragmatic Unit Testing in C#

Jonas Pegerfalk
+2  A: 

There are lots of documents on the nmock web site:

http://www.nmock.org/tutorial.html http://www.nmock.org/advanced.html

Scott James
A: 

Extreme Programming Adventures in C# is well rated and deals with Mock Objects. It could be a bit outdated (current edition is 2004).

philippe