Testably.Abstractions.Testing
2.5.1
Prefix Reserved
See the version list below for details.
dotnet add package Testably.Abstractions.Testing --version 2.5.1
NuGet\Install-Package Testably.Abstractions.Testing -Version 2.5.1
<PackageReference Include="Testably.Abstractions.Testing" Version="2.5.1" />
<PackageVersion Include="Testably.Abstractions.Testing" Version="2.5.1" />
<PackageReference Include="Testably.Abstractions.Testing" />
paket add Testably.Abstractions.Testing --version 2.5.1
#r "nuget: Testably.Abstractions.Testing, 2.5.1"
#:package Testably.Abstractions.Testing@2.5.1
#addin nuget:?package=Testably.Abstractions.Testing&version=2.5.1
#tool nuget:?package=Testably.Abstractions.Testing&version=2.5.1
This library contains the testing helpers for Testably.Abstractions.
MockFileSystem
Initialization
Shows how to initialize the file system:
fileSystem.InitializeIn("current-directory")
.WithASubdirectory()
.WithSubdirectory("foo").Initialized(s => s
.WithAFile())
.WithFile("bar.txt");
Initialize the file system in "current-directory" with
- a randomly named directory
- a directory named "foo" which contains a randomly named file
- a file named "bar.txt"
In order to use multiple drives on Windows (or network shares) you have to first register them:
fileSystem.WithDrive(@"D:", drive => drive.SetTotalSize(1024));
The optional configuration allows limiting the maximum available space on the drive.
Events
All changes in the file system trigger certain events. All events can be
- intercepted, before they occur (and e.g. an exception thrown to prevent the event from completing) on the
Interceptproperty:MockFileSystem fileSystem = new(); fileSystem.Intercept.Creating(FileSystemTypes.File, _ => throw new Exception("my custom exception")); - notified, after they occured to allow a test to react to changes on the
MockFileSystem.Notifyproperty: These methods return an awaitable object that- Removes the notification on dispose
- Provides a blocking mechanism until the notification happens
MockFileSystem fileSystem = new(); fileSystem.Notify .OnCreated(FileSystemTypes.File, _ => { // Do something }) .ExecuteWhileWaiting(() => { // This will trigger the callback fileSystem.File.Create("some-file.txt"); }) .Wait();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Linq.Async (>= 6.0.1)
- System.Threading.Channels (>= 8.0.0)
- Testably.Abstractions.Interface (>= 2.5.1)
-
.NETStandard 2.1
- System.Linq.Async (>= 6.0.1)
- System.Threading.Channels (>= 8.0.0)
- Testably.Abstractions.Interface (>= 2.5.1)
-
net6.0
- System.Linq.Async (>= 6.0.1)
- System.Threading.Channels (>= 8.0.0)
- Testably.Abstractions.Interface (>= 2.5.1)
-
net7.0
- System.Linq.Async (>= 6.0.1)
- System.Threading.Channels (>= 8.0.0)
- Testably.Abstractions.Interface (>= 2.5.1)
-
net8.0
- System.Linq.Async (>= 6.0.1)
- System.Threading.Channels (>= 8.0.0)
- Testably.Abstractions.Interface (>= 2.5.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Testably.Abstractions.Testing:
| Package | Downloads |
|---|---|
|
Testably.Abstractions.FluentAssertions
FluentAssertions extension methods for `Testably.Abstractions`. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Testably.Abstractions.Testing:
| Repository | Stars |
|---|---|
|
Monitor221hz/Pandora-Behaviour-Engine-Plus
Patcher for behavior, character, and skeleton project files for Skyrim Special Edition.
|
|
|
TeamWheelWizard/WheelWizard
WheelWizard, Retro Rewind Launcher
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.9 | 3,748 | 9/19/2025 |
| 4.3.8 | 774 | 9/16/2025 |
| 4.3.7 | 633 | 9/12/2025 |
| 4.3.6 | 816 | 9/11/2025 |
| 4.3.5 | 291 | 9/10/2025 |
| 4.3.4 | 322 | 9/9/2025 |
| 4.3.3 | 426 | 9/6/2025 |
| 4.3.2 | 2,748 | 8/15/2025 |
| 4.3.1 | 416 | 8/11/2025 |
| 4.3.0 | 232 | 8/10/2025 |
| 4.2.1 | 981 | 7/18/2025 |
| 4.2.0 | 701 | 7/13/2025 |
| 4.1.0 | 189 | 7/11/2025 |
| 4.0.1 | 12,932 | 3/13/2025 |
| 4.0.0 | 2,992 | 2/1/2025 |
| 3.3.0-pre.1 | 273 | 1/31/2025 |
| 3.2.4 | 6,681 | 11/12/2024 |
| 3.2.3 | 4,883 | 8/16/2024 |
| 3.2.2 | 682 | 7/17/2024 |
| 3.2.1 | 1,779 | 5/16/2024 |
| 3.2.0 | 452 | 5/5/2024 |
| 3.1.2 | 676 | 4/9/2024 |
| 3.1.1 | 341 | 4/7/2024 |
| 3.1.0 | 1,635 | 4/1/2024 |
| 3.0.1 | 276 | 3/30/2024 |
| 3.0.0 | 399 | 3/29/2024 |
| 2.6.1 | 19,899 | 1/7/2024 |
| 2.6.0 | 1,370 | 11/16/2023 |
| 2.5.1 | 215 | 11/16/2023 |
| 2.5.0 | 4,268 | 10/7/2023 |
| 2.4.1 | 7,174 | 8/23/2023 |
| 2.4.0 | 249 | 8/23/2023 |
| 2.3.4 | 4,103 | 8/1/2023 |
| 2.3.3 | 814 | 7/24/2023 |
| 2.3.2 | 1,089 | 7/17/2023 |
| 2.3.1 | 1,179 | 5/15/2023 |
| 2.3.0 | 271 | 5/12/2023 |
| 2.2.2 | 12,998 | 4/18/2023 |
| 2.2.1 | 283 | 4/16/2023 |
| 2.2.0 | 313 | 4/10/2023 |
| 2.1.0 | 628 | 3/7/2023 |
| 2.0.1 | 685 | 2/6/2023 |
| 2.0.0 | 482 | 12/18/2022 |
| 1.0.0 | 466 | 11/18/2022 |