System.IO.Abstractions
System.IO.Abstractions copied to clipboard
Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!
Fixes #870: Change the order when moving files: 1. Remove the previous file (throws an exception, if the file access is not sufficient) 2. Add the moved file on the...
Adds a FileSystemInfo extension for wrapping convenience. Adds FEATURE_CREATE_SYMBOLIC_LINK to the build properties. Includes mock implementations and mock tests. Updates the ApiParityTests to no longer ignore CreateSymbolicLink for .net 6.0....
Implements #872 Adjust `CreationTime`, `LastAccessTime` and `LastWriteTime` when interacting with files in the `MockFileSystem`. Provides a means to mock the used DateTime by calling e.g. ```csharp var fixedTime = new...
**Is your feature request related to a problem? Please describe.** I want to test a functionality that relies on the "GetLastWriteTimeUtc" method to detect when a file was last changed....
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/TestableIO/System.IO.Abstractions). ## Config Migration Needed - [ ]...
**Is your feature request related to a problem? Please describe.** I'd like to be able to use the `File.CreateSymbolicLink` and `Directory.CreateSymbolicLink` functionality in a testable way. **Describe the solution you'd...
**Describe the bug** Moving a readonly file throws (correctly) an UnauthorizedAccessException, but afterwards both the source file and also the target file exist. **To Reproduce** Consider the following unit test...
Fix for issue #736. Made changes to the `MockDirectoryInfo` under `System.IO.Abstractions.TestingHelpers`. `MoveTo` now updates the `directoryName` when moving the directory to the destination folder. This should also fix the following...
This will make mergify use the PR title and body in the message of the squash commit which is what we assume in our CI checks.
This should fix #815 If the path orginally given is relative, we return relative paths as well. For instance in a folder structure like: ``` . ./foo ./foo/bar ``` where...