[英]System.IO.Abstractions Limitations
I've been recently using System.IO.Abstractions in order to mock to filesystem and be able to write tests. 我最近一直在使用System.IO.Abstractions来模拟文件系统并能够编写测试。 Regular operations like reading, writing from the file work just fine. 常规操作(如读取,从文件写入)可以正常工作。 However, trying to set a lock on a file is not taken into consideration. 但是,未考虑尝试在文件上设置锁定。 Also trying to use a stream writer against a file stream opened exclusively for read access succeeds. 尝试对专门为读取访问而打开的文件流使用流编写器也会成功。
Not sure if the functionality just isn't there or if I'm missing something. 不知道该功能是否不存在或者我是否缺少任何东西。 Anyone else came across this? 还有其他人遇到吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.