System.IO.Abstractions icon indicating copy to clipboard operation
System.IO.Abstractions copied to clipboard

Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!

Results 58 System.IO.Abstractions issues
Sort by recently updated
recently updated
newest added

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(),...

type: enhancement
state: needs discussion
area: testinghelpers

**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...

type: bug
state: ready
area: testinghelpers

**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....

type: enhancement
state: needs discussion

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...

type: enhancement
state: needs discussion

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...

type: question
state: needs discussion
area: meta

**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...

type: bug
state: ready to pick
area: testinghelpers

**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...

type: bug
state: ready to pick
area: testinghelpers

**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...

type: bug
area: core
state: won't do