Skill / SKILL.md

Exp Mock Usage Analysis

dotnet/skills

Audits .NET test mock usage by tracing each mock setup through the production code's execution path to find dead, unreachable, redundant, or replaceable mocks. Use when the user asks to audit mock usage, find unused or unnecessary mock setups, check if mocks are needed, reduce mock duplication or over-mocking, simplify test setup, or review whether mock configurations like ILogger/IOptions should use real implementations instead. Supports Moq, NSubstitute, and FakeItEasy.
2 views 6,410 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Audits .NET test mock usage by tracing each mock setup through the production code's execution path to find dead, unreachable, redundant, or replaceable mocks. Use when the user asks to audit mock usage, find unused or unnecessary mock setups, check if mocks are needed, reduce mock duplication or over-mocking, simplify test setup, or review whether mock configurations like ILogger/IOptions should use real implementations instead. Supports Moq, NSubstitute, and FakeItEasy.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/dotnet/skills' skill-source

Use the complete skill-source/plugins/dotnet-experimental/skills/exp-mock-usage-analysis directory with your client’s skill installer.

  • plugins/dotnet-experimental/skills/exp-mock-usage-analysis

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/dotnet-experimental/skills/exp-mock-usage-analysis

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
fbc4e696e1154060a47f249ed4893424de963d0bacbb58c8bf3d3d822f4b8c45
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills