How to isolate Directory.Exists in unit testing using disposable pattern

Earlier i wrote a blog post about isolating DateTime.Now with disposable pattern. Here is a little more advance example for the static method Directory.Exists.

So here is the simple example of product code that we want to test…

Bron : Peter Wibeck’s blog
Lees meer…

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply