dotnet-testing-private-internal-testing

Community

Design-first testing for private/internal members

Authorkevintsengtw
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides testers and developers in designing and validating tests for private and internal members of .NET projects, emphasizing testability and safe exposure strategies.

Core Features & Use Cases

  • InternalsVisibleTo guidance: how to expose internal members to test projects safely using the Meziantou MSBuild approach or other methods.
  • Reflection-based testing: techniques to access and test internal/private methods with helper utilities and wrapper methods.
  • Design-for-testability: strategies such as strategy pattern refactoring to improve testability of complex logic.
  • Use Case: validate internal algorithms in a class library without compromising encapsulation.

Quick Start

  • Enable internals visibility to your test projects using InternalsVisibleTo (via AssemblyInfo, csproj, or Meziantou package).
  • Use reflection helpers to access private methods in tests.
  • Start with a small internal class, write unit tests, and progressively refactor to improve testability.

Dependency Matrix

Required Modules

None required

Components

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-private-internal-testing
Download link: https://github.com/kevintsengtw/dotnet-testing-agent-skills/archive/main.zip#dotnet-testing-private-internal-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.