·dotnet-testing-nsubstitute-mocking
</>

dotnet-testing-nsubstitute-mocking

kevintsengtw/dotnet-testing-agent-skills

使用 NSubstitute 建立測試替身(Mock、Stub、Spy)的專門技能。 當需要隔離外部依賴、模擬介面行為、驗證方法呼叫時使用。 涵蓋 Substitute.For、Returns、Received、Throws 等完整指引。

16Installs·0Trend·@kevintsengtw

Installation

$npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-nsubstitute-mocking

SKILL.md

此技能專注於使用 NSubstitute 建立和管理測試替身,涵蓋 Test Double 五大類型、依賴隔離策略、行為設定與驗證的最佳實踐。

使用 NSubstitute 建立測試替身(Mock、Stub、Spy)的專門技能。 當需要隔離外部依賴、模擬介面行為、驗證方法呼叫時使用。 涵蓋 Substitute.For、Returns、Received、Throws 等完整指引。 Source: kevintsengtw/dotnet-testing-agent-skills.

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-nsubstitute-mocking Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Security certified for safe and reliable code One-click installation with simplified configuration Compatible with Claude Code, Cursor, and more

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-nsubstitute-mocking
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is dotnet-testing-nsubstitute-mocking?

使用 NSubstitute 建立測試替身(Mock、Stub、Spy)的專門技能。 當需要隔離外部依賴、模擬介面行為、驗證方法呼叫時使用。 涵蓋 Substitute.For、Returns、Received、Throws 等完整指引。 Source: kevintsengtw/dotnet-testing-agent-skills.

How do I install dotnet-testing-nsubstitute-mocking?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-nsubstitute-mocking Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/kevintsengtw/dotnet-testing-agent-skills