dotnet-testing-autofixture-nsubstitute-integration

Installation
SKILL.md

AutoFixture + NSubstitute 自動模擬整合

核心價值

  • 減少樣板程式碼:不需要手動為每個介面建立 Substitute.For<T>()
  • 自動處理複雜相依圖:AutoFixture 會自動解析並建立所需的物件
  • 提升測試維護性:當建構函式變更時,測試程式碼通常不需要同步修改
  • 保持測試重點:讓開發者專注於測試邏輯而非物件建立

套件安裝與設定

必要套件

# 核心套件
dotnet add package AutoFixture.AutoNSubstitute
Related skills
Installs
24
GitHub Stars
24
First Seen
Jan 24, 2026