A set of abstractions to help make file system interactions testable.
Install
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
Testably.Abstractions.FileSystem.Interface
File-system interface for Testably.Abstractions: defines IFileSystem (and its subtypes) in the System.IO.Abstractions namespace, making it source-compatible with TestableIO.System.IO.Abstractions.
Full documentation: docs.testably.org/Abstractions
Installation
dotnet add package Testably.Abstractions.FileSystem.Interface
Most users install
Testably.Abstractions(production) andTestably.Abstractions.Testing(tests) instead; both pull this package in transitively. Reach for this package directly only if you need just the file-system interface, withoutITimeSystem/IRandomSystem.
Features
IFileSystem mirrors System.IO (File, Directory, FileInfo, DirectoryInfo, FileStream, Path, DriveInfo, FileSystemWatcher, FileVersionInfo). Constructors are exposed as factory methods (e.g. fileSystem.FileInfo.New(path)).
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.