![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Storage.FileSystem --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Storage.FileSystem -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Storage.FileSystem" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Storage.FileSystem" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Storage.FileSystem" />Project file
paket add Rig.TUnit.Storage.FileSystem --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Storage.FileSystem, 0.1.0-beta.2"
#:package Rig.TUnit.Storage.FileSystem@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Storage.FileSystem&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Storage.FileSystem&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
In-process filesystem fixture on
System.IO.Abstractionswith traversal-safePathSandboxHelper. No container required.
The zero-container storage provider. FileSystemFixture creates a
unique temp sandbox directory (Path.GetTempPath() + prefix + IsolationKey) and cleans it up on dispose. PathSandboxHelper.Resolve (root, relative) ensures the resolved path stays inside the root —
throws on ../ traversal attempts. This is the foundation for safe
per-test filesystem manipulation.
.S3, .AzureBlob,
or .MinIO.System.IO.Abstractions (transitive)Path.GetTempPath() on the test host.using Rig.TUnit.Storage.FileSystem.Fixtures;
await using var fx = new FileSystemFixture();
await fx.InitializeAsync();
var path = Path.Combine(fx.Root, "greeting.txt");
await File.WriteAllTextAsync(path, "hello");
| Property | Type | Default | Description |
|---|---|---|---|
RootPathPrefix |
string |
"rigtunit-fs" |
Temp-dir prefix |
CleanupOnDispose |
bool |
true |
Recursively delete sandbox on dispose |
UseMockFileSystem |
bool |
false |
Use MockFileSystem instead of real disk |
Section name: RigTUnit:FileSystem.
Rig.TUnit.Storage.FileSystem.Fixtures.FileSystemFixtureRig.TUnit.Storage.FileSystem.Options.FileSystemFixtureOptionsRig.TUnit.Storage.FileSystem.Builder.FileSystemRigBuilderRig.TUnit.Storage.FileSystem.Helpers.PathSandboxHelperEach fixture owns a unique temp directory {TempPath}/{prefix}- {IsolationKey}. Teardown deletes recursively. PathSandboxHelper
ensures resolved paths stay inside the sandbox.
UnauthorizedAccessException: path escapes sandbox — exactly
what you want — PathSandboxHelper caught a traversal. Fix the test
or input validation at the callsite.CleanupOnDispose=false was set, or
the test crashed before Dispose. Temp cleanup is a safety net, not
a guarantee; prefer explicit using / await using.See .
PathSandboxHelper normalises to OS-native
separators internally; relative path inputs should use / for
portability.UseMockFileSystem=true switches to MockFileSystem from
System.IO.Abstractions.TestingHelpers — no real disk I/O, useful
for speed but diverges on edge cases (file locking, case-sensitivity).See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Storage.FileSystem:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 67 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 60 | 4/26/2026 |