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

查看:40
本文介绍了.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天全站免登陆