ワンクリックで
csharp-xunit
xUnit testing patterns and data-driven test guidance. Use when writing or reviewing .NET unit tests.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
xUnit testing patterns and data-driven test guidance. Use when writing or reviewing .NET unit tests.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
Map tasks to specialist agents. Use when choosing which agent for a job, comparing agent capabilities, or routing to React/Next.js/Playwright/docs/code-quality experts. Keywords: which agent, best agent for this, delegate to expert, agent capability mapping.
Evaluate and improve AI-generated output with explicit rubrics, reflection loops, and stop conditions. Use when building self-critique workflows, evaluator-optimizer pipelines, or acceptance gates for code, docs, analysis, or plans.
Audit and rewrite content to remove AI writing patterns ("AI-isms"). Supports detect-only audits, edit-in-place file cleanup, voice and context profiles, and an iterate-to-convergence pass.
Azure deployment for web apps — Static Web Apps, App Service, Blob Storage, Bicep/ARM, GitHub Actions CI/CD. Use when deploying Next.js/Vite to Azure or configuring Azure resources for full-stack apps.
Interactive idea refinement using Socratic method to develop fully-formed designs
| name | csharp-xunit |
| version | 1.3 |
| last_updated | "2026-07-11T00:00:00.000Z" |
| tags | ["dotnet","testing","development","quality","automation"] |
| description | xUnit testing patterns and data-driven test guidance. Use when writing or reviewing .NET unit tests. |
Optimized for current .NET SDK releases, C# 12+, xUnit 2.x, and FluentAssertions 6+.
Your goal is to help me write effective unit tests with XUnit, covering both standard and data-driven testing approaches.
Before claiming "skill applied successfully":
// Before
[Fact]
public async Task SavesOrder()
{
var id = await service.SaveAsync(order);
Assert.True(id > 0);
}
// After
[Fact]
public async Task SaveAsync_WhenOrderIsValid_PersistsAndReturnsId()
{
// Arrange
var order = new Order("ORD-42", 3);
// Act
var id = await service.SaveAsync(order);
// Assert
id.Should().BeGreaterThan(0);
}
Moves from a vague assertion to an explicit Arrange-Act-Assert flow with a descriptive name.
[ProjectName].TestsCalculatorTests for Calculator)dotnet test for running tests[Fact] attribute for simple testsMethodName_Scenario_ExpectedBehaviorIDisposable.Dispose() for teardownIClassFixture<T> for shared context between tests in a classICollectionFixture<T> for shared context between multiple test classes[Theory] combined with data source attributes[InlineData] for inline test data[MemberData] for method-based test data[ClassData] for class-based test dataDataAttributeAssert.Equal for value equalityAssert.Same for reference equalityAssert.True/Assert.False for boolean conditionsAssert.Contains/Assert.DoesNotContain for collectionsAssert.Matches/Assert.DoesNotMatch for regex pattern matchingAssert.Throws<T> or await Assert.ThrowsAsync<T> to test exceptions[Trait("Category", "CategoryName")] for categorizationITestOutputHelper) for test diagnosticsSkip = "reason" in fact/theory attributesThis skill is written to stay usable across GitHub Copilot, Claude Code, Codex, and Gemini CLI.
$CODEX_HOME/skills/<skill-name> and restart Codex after major changes./skills:csharp-xunit from this skill. Rebuild commands with python scripts/export-gemini-skill.py csharp-xunit and then run /commands reload inside Gemini CLI.Preferred MCP Server: None required
SKILL.md, bundled references or scripts, and manual verification. Show the exact commands, evidence, and final checks you used before concluding."