with one click
skill-c-xunit-expert
Use when creating, reviewing, or refactoring xUnit tests.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Use when creating, reviewing, or refactoring xUnit tests.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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: