dotnet-testing-filesystem-testing-abstractions
CommunityMake filesystem testing fast with IO Abstractions
Software Engineering#testing#unit testing#dependency injection#filesystem#System.IO.Abstractions#MockFileSystem
Authorkevintsengtw
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables unit testing of filesystem interactions by abstracting System.IO behind IFileSystem, allowing tests to run without touching the real disk and to simulate various file states.
Core Features & Use Cases
- IFileSystem abstraction: Replaces direct calls to System.IO with a testable interface, enabling dependency injection.
- MockFileSystem-driven tests: Leverages MockFileSystem to create deterministic file structures for tests.
- Comprehensive file/dir operations coverage: Supports typical file and directory operations, path utilities, and error scenarios in tests.
Quick Start
Install System.IO.Abstractions and System.IO.Abstractions.TestingHelpers in your test project, wire IFileSystem into your services, and start replacing File, Directory, and Path usages with the injected abstraction.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-testing-filesystem-testing-abstractions Download link: https://github.com/kevintsengtw/dotnet-testing-agent-skills/archive/main.zip#dotnet-testing-filesystem-testing-abstractions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.