System.IO.Abstractions
System.IO.Abstractions copied to clipboard
Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!
Currently, if you switch current directory in the `MockFileSystem` to a UNC path, and try to enumerate files, it blows up. Attempting to fix it, although it feels like a...
**Observing Changes** *Implements #805* Allows registering a callback to be executed whenever a file or directory event is triggered in the file system: ```csharp var fs = new MockFileSystem() .OnFileEvent(f...
**Is your feature request related to a problem? Please describe.** It should be possible to throw exception while call methods on FileSystemMock. **Describe the solution you'd like** `_fileSystemMock.Setup(q => q.File.WriteAllText(It.IsAny(),...
**Describe the bug** When comparing the behaviour of `MockFileSystem.FileStream.Create` with the the behaviour of the real file system (constructor of `FileStream`), some edge cases are not implemented correctly. The following...
**Is your feature request related to a problem? Please describe.** Our CI pipeline currently is Linux only, but we also want to unit test our code which handles windows paths....
Problem: I have a parser that iterates through the file system and parses each file one by one. The functionality is built around IEnumerables and needs to ensure that the...
Try to generate MS Fakes Stubs for all interfaces under System.IO.Abstractions without success. **To Reproduce** Steps to reproduce the behavior: 1. Create MS Test Project, add System.IO.Abstractions NuGet 2. On...
**Describe the bug** When using `FileSystem` and `MockFileSystem` I noticed there is different behavior when creating a new `IFileInfo` using only whitespaces. The "error" trails down to the PathVerifier that...
**Describe the bug** In a special case of a rooted, but not absolute path, `MockPath.GetFullPath` produces results which differ from what i get using `System.IO.Path.GetFullPath` **To Reproduce** ```csharp var fs...
**Describe the bug** I was updating a library and moved from 17.11 to latest. This broke a section of code that was testing for the type of stream. ` if(Stream...