.NET文件系统包装库 [英] .NET file system wrapper library

查看:113
本文介绍了.NET文件系统包装库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,我无法找到一个,但必须有人已经创建了一个.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文件系统包装库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆