Testably.Abstractions.FileSystem.Interface (10.1.0)

Published 2026-11-23 16:32:33 +00:00 by demo-admin

Installation

dotnet nuget add source --name demo-admin --username your_username --password your_token 
dotnet add package --source demo-admin --version 10.1.0 Testably.Abstractions.FileSystem.Interface

About this package

A set of abstractions to help make file system interactions testable.

Testably.Abstractions Nuget Build Quality Gate Status Coverage

This library contains the abstraction interfaces for Testably.Abstractions, which allow replacing system dependencies:

  • The IFileSystem interface abstracts away all I/O-related functionality from the System.IO namespace:
    Static methods are directly implemented on the IFileSystem interface. Constructors are implemented as factory methods, e.g. IFileSystem.FileInfo.New(string) instead of new FileInfo(string).
  • The ITimeSystem interface abstracts away time-related functionality:
    DateTime methods give access to the current time, Thread allows replacing Thread.Sleep and Task allows replacing Task.Delay.
  • The IRandomSystem interface abstracts away functionality related to randomness:
    Random methods implement a thread-safe Shared instance also under .NET Framework and Guid methods allow creating new GUIDs.
Details
NuGet
2026-11-23 16:32:33 +00:00
2
Testably
125 KiB
Assets (2)
Versions (1) View all
10.1.0 2026-11-23