·dotnet-testing-autofixture-customization
</>

dotnet-testing-autofixture-customization

kevintsengtw/dotnet-testing-agent-skills

AutoFixture 進階自訂化技術完整指南。 涵蓋 DataAnnotations 自動整合、ISpecimenBuilder 實作、優先順序管理。 包含 DateTime/數值範圍建構器、泛型化設計與流暢式擴充方法。

12安裝·0熱度·@kevintsengtw

安裝

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

SKILL.md

本技能涵蓋 AutoFixture 的進階自訂化功能,讓您能根據業務需求精確控制測試資料的生成邏輯。從 DataAnnotations 自動整合到自訂 ISpecimenBuilder 實作,掌握這些技術能讓測試資料更符合實際業務需求。

| 實例化方式 | 每次建立新實例 | 全域共用單一實例 | | 執行緒安全 | ❌ 不是 | ✅ 是 | | 效能 | 多次建立有負擔,可能重複值 | 效能更佳,避免重複值 | | 用途建議 | 單執行緒、短期用途 | 多執行緒、全域共用 |

AutoFixture 內建的 RangeAttributeRelay、NumericSequenceGenerator 可能比自訂建構器有更高優先順序:

AutoFixture 進階自訂化技術完整指南。 涵蓋 DataAnnotations 自動整合、ISpecimenBuilder 實作、優先順序管理。 包含 DateTime/數值範圍建構器、泛型化設計與流暢式擴充方法。 來源:kevintsengtw/dotnet-testing-agent-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-autofixture-customization
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 dotnet-testing-autofixture-customization?

AutoFixture 進階自訂化技術完整指南。 涵蓋 DataAnnotations 自動整合、ISpecimenBuilder 實作、優先順序管理。 包含 DateTime/數值範圍建構器、泛型化設計與流暢式擴充方法。 來源:kevintsengtw/dotnet-testing-agent-skills。

如何安裝 dotnet-testing-autofixture-customization?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-autofixture-customization 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

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