一键导入
skill-c-xunit-expert
Use when creating, reviewing, or refactoring xUnit tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating, reviewing, or refactoring xUnit tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when generating, reviewing, or updating XML documentation comments for public .NET APIs.
Use when generating, reviewing, refactoring, or optimizing .NET 8 and C# code.
Use when creating, reviewing, or refactoring tests for Entity Framework Core applications.
Use when working with EF Core 8, repositories, transactions, query optimization, and migrations.
Use when implementing or modifying Revit Add-In behavior, external commands, external events, transactions, family handling, and BIM data workflows.
Use when working with SQL Server schema design, query tuning, indexing, transactions, locking, and EF Core SQL Server integration.
| name | Skill: C# xUnit Expert |
| description | Use when creating, reviewing, or refactoring xUnit tests. |
Use this skill when creating, reviewing, or refactoring xUnit tests.
Prioritize:
Tests should clearly communicate intent.
Prefer:
Example:
[Fact]
public async Task GetObjectAsync_ObjectExists_ReturnsObject()
{
// Arrange
// Act
// Assert
}
Use:
MethodName_StateUnderTest_ExpectedBehavior
Prefer:
Assert.EqualAssert.NotNullAssert.TrueAssert.FalseAssert.CollectionAssert.ThrowsAsyncUse specific assertions instead of generic boolean assertions whenever possible.
For async methods:
Assert.ThrowsAsync for exceptions..Result or .Wait().Each test must:
Prefer integration tests when validating: