由于某种原因我找不到,但肯定有人已经创建了一个 .NET IO 库包装器.我希望能够模拟对 File.Exists 等的调用,而内置的静态方法对此并不适用.
For some reason I can't find one, but someone must have already created a .NET IO library wrapper. I want to be able to mock calls to File.Exists etc, and the static methods builtin don't lend well to this.
我在几分钟前找到了 SystemWrapper你的,但你的更适合我的目的.
I found SystemWrapper a few minutes before yours, but yours suits my purposes better.
这篇关于.NET 文件系统包装库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!