dotnet-testing-autofixture-customization
✓AutoFixture 進階自訂化技術完整指南。 涵蓋 DataAnnotations 自動整合、ISpecimenBuilder 實作、優先順序管理。 包含 DateTime/數值範圍建構器、泛型化設計與流暢式擴充方法。
Installation
SKILL.md
本技能涵蓋 AutoFixture 的進階自訂化功能,讓您能根據業務需求精確控制測試資料的生成邏輯。從 DataAnnotations 自動整合到自訂 ISpecimenBuilder 實作,掌握這些技術能讓測試資料更符合實際業務需求。
| 實例化方式 | 每次建立新實例 | 全域共用單一實例 | | 執行緒安全 | ❌ 不是 | ✅ 是 | | 效能 | 多次建立有負擔,可能重複值 | 效能更佳,避免重複值 | | 用途建議 | 單執行緒、短期用途 | 多執行緒、全域共用 |
AutoFixture 內建的 RangeAttributeRelay、NumericSequenceGenerator 可能比自訂建構器有更高優先順序:
AutoFixture 進階自訂化技術完整指南。 涵蓋 DataAnnotations 自動整合、ISpecimenBuilder 實作、優先順序管理。 包含 DateTime/數值範圍建構器、泛型化設計與流暢式擴充方法。 Source: kevintsengtw/dotnet-testing-agent-skills.
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-autofixture-customization- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is dotnet-testing-autofixture-customization?
AutoFixture 進階自訂化技術完整指南。 涵蓋 DataAnnotations 自動整合、ISpecimenBuilder 實作、優先順序管理。 包含 DateTime/數值範圍建構器、泛型化設計與流暢式擴充方法。 Source: kevintsengtw/dotnet-testing-agent-skills.
How do I install dotnet-testing-autofixture-customization?
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-autofixture-customization 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
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01