AGENT SKILL

unit-test-design

Guide for designing unit tests

License 许可
MIT
最近更新
2026-06-12
Stars
★ 1
Forks
0

01 前言 Front Matter

name
unit-test-design
description
Guide for designing unit tests

03 SKILL.md 正文

Stack replies with: ✅

  • Use NUnit
  • Structure the test into three parts: Arrange, Act, Assert.
  • Do not separate sections with comments like // Arrange, use a blank line either side of the Act step.
  • Test names should include both the scenario being tested and expected result like this ScenarioSummary_ExpectedResult
  • When there is more than one assertion use one of these strategies:
    1. Use Constraint based assertions and group them with Assert.Multiple.
    2. Use a Printer together with Verify to make an Approval test.

04 同仓库更多 Skills