Thank you for reaching Telerik support.
You are trying to mock a static MsCorlib member (the Directory class). Unfortunately, this is not possible in versions prior to JustMock 2013.2.522 Internal Build.
However, I suggest updating to the latest JustMock version which happens to be JustMock 2013.2.603 Internal Build. With it, you could write the test like this:
Mock.Arrange(() => Directory.GetDirectories(Arg.AnyString, Arg.AnyString, Arg.IsAny<SearchOption>()))
// throws ArgumentNullException here
var test = Directory.GetDirectories(
This will pass.
I hope this helps. Please, let me know if there is anything else I could help you with.
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums
, or our JustTrace