·dotnet-testing-private-internal-testing
</>

dotnet-testing-private-internal-testing

kevintsengtw/dotnet-testing-agent-skills

Private 與 Internal 成員測試策略指南。 強調設計優先思維,提供 InternalsVisibleTo、反射測試與重構策略。 涵蓋策略模式重構、AbstractLogger 模式、測試友善設計與決策框架。

12Installs·0Trend·@kevintsengtw

Installation

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

SKILL.md

| 封裝性破壞 | 中等 | 增加了測試對內部實作的依賴 | | 重構阻力 | 高 | 改變 internal 成員會影響測試 | | 維護成本 | 中等 | 需要同步維護生產代碼和測試代碼 | | 設計品質 | 低 | 如果過度使用,可能表示設計有問題 |

| 簡單私有方法(< 10 行) | 透過公開方法測試 | 維護成本低 | | 複雜私有邏輯(> 10 行) | 重構為獨立類別 | 改善設計與可測試性 | | 框架內部演算法 | 使用 InternalsVisibleTo | 需要精確測試內部行為 | | 遺留系統私有方法 | 考慮使用反射測試 | 短期內難以重構 | | 安全相關私有邏輯 | 重構或使用反射測試 | 需要獨立驗證正確性 | | 頻繁變動的實作細節 | 避免直接測試 | 測試會變得脆弱 |

Private 與 Internal 成員測試策略指南。 強調設計優先思維,提供 InternalsVisibleTo、反射測試與重構策略。 涵蓋策略模式重構、AbstractLogger 模式、測試友善設計與決策框架。 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-private-internal-testing Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

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-private-internal-testing
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is dotnet-testing-private-internal-testing?

Private 與 Internal 成員測試策略指南。 強調設計優先思維,提供 InternalsVisibleTo、反射測試與重構策略。 涵蓋策略模式重構、AbstractLogger 模式、測試友善設計與決策框架。 Source: kevintsengtw/dotnet-testing-agent-skills.

How do I install dotnet-testing-private-internal-testing?

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-private-internal-testing 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