Unit Testing and Mock Objects
Last night I read chapter 6 of Pragmatic Unit Testing - In C# with NUnit which covered using mock objects. I found the idea of mock objects interesting but, despite the examples given in the book, had a hard time trying to think of some good cases for using mock objects. Sure, the network could become unavailable, hard drives can fail, memory failures can happen, etc. I'm curious what other NUnit and perhaps DotNetMock users have found to be useful cases for employing mock objects in their unit tests. Anyone care to share their experiences?