Then write the code which you want to execute rather than executing the actual code. For instance now I want to just “return true” in a hard code manner.
Now any calls to the “target” email object will always return true. At the last there is a video which talks about Mock testing.
So are we saying Microsoft does not have mock frameworks?
In Visual studio 2012 Microsoft has introduced “Fakes” which has two great features “Stubs” and “Shims” which will help us achieve mock testing.