Simulated.FileSystem
0.5.1
dotnet add package Simulated.FileSystem --version 0.5.1
NuGet\Install-Package Simulated.FileSystem -Version 0.5.1
<PackageReference Include="Simulated.FileSystem" Version="0.5.1" />
paket add Simulated.FileSystem --version 0.5.1
#r "nuget: Simulated.FileSystem, 0.5.1"
// Install Simulated.FileSystem as a Cake Addin #addin nuget:?package=Simulated.FileSystem&version=0.5.1 // Install Simulated.FileSystem as a Cake Tool #tool nuget:?package=Simulated.FileSystem&version=0.5.1
This package provides a transactional view of a file system and an in-memory simulator for that view. This makes it easy to test code that interacts with the file system.
This is not your typical files and directories API. There is a single instance that represents the entire file system. File and directory objects are bound to a file system instance and all the instances related to a single file system share consistent state.
Whole-system savepoints are built in and you can revert to the last savepoint at any time.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Everything is performed async, with Tasks exposed to the user. Make sure you await operations.
This release also adds the ability to delete files and directories, still with full transactional gurantees.
API is not yet locked but will be soon. At tht point, I will maintain backwards compatibility from there on. Future experimentation will happen in the Simulated.Experimental namespace. Everything outside of that namespace will be compatible.