·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