How to mock 'out' parameter?
问题 I have downloaded the latest NSubstitute release, 1.1.0, May 21, 2011. Prior to this release, it seems that NSub did not support out parameters. It appears that some work has been done to provide support through an intermediate release: NSub Google Group. So, I am having a little trouble trying to get all the pieces working. I am using SystemWrapper to mock DirectoryInfo Here is my interface: public interface INetworkPath { void SetPath(string NetworkPath); bool TryGetDirectoryInfo(out