xunit — for Claude Code bITdevKit, community, for Claude Code, ide skills, MethodName_Scenario_ExpectedBehavior, ### Theory with InlineData, Per-class shared state, Cross-class shared state, ### Async Test Pattern, testing

v1.0.0

Über diesen Skill

Geeigneter Einsatz: Ideal for AI agents that need unit test structure. Lokalisierte Zusammenfassung: # xUnit Skill xUnit is the testing framework to use. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Funktionen

Unit Test Structure
public class WalletManagerTests
private readonly Mock<IRepository<Wallet mockRepository;
private readonly WalletManager sut;
public WalletManagerTests()

# Core Topics

BridgingIT-GmbH BridgingIT-GmbH
[6]
[4]
Updated: 4/8/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
43
Canonical Locale
en
Detected Body Locale
en

Geeigneter Einsatz: Ideal for AI agents that need unit test structure. Lokalisierte Zusammenfassung: # xUnit Skill xUnit is the testing framework to use. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Warum diese Fähigkeit verwenden

Empfehlung: xunit helps agents unit test structure. xUnit Skill xUnit is the testing framework to use. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Am besten geeignet für

Geeigneter Einsatz: Ideal for AI agents that need unit test structure.

Handlungsfähige Anwendungsfälle for xunit

Anwendungsfall: Applying Unit Test Structure
Anwendungsfall: Applying public class WalletManagerTests
Anwendungsfall: Applying private readonly Mock<IRepository<Wallet mockRepository;

! Sicherheit & Einschränkungen

  • Einschraenkung: Requires repository-specific context from the skill documentation
  • Einschraenkung: Works best when the underlying tools and dependencies are already configured

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is xunit?

Geeigneter Einsatz: Ideal for AI agents that need unit test structure. Lokalisierte Zusammenfassung: # xUnit Skill xUnit is the testing framework to use. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

How do I install xunit?

Run the command: npx killer-skills add BridgingIT-GmbH/bITdevKit/xunit. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for xunit?

Key use cases include: Anwendungsfall: Applying Unit Test Structure, Anwendungsfall: Applying public class WalletManagerTests, Anwendungsfall: Applying private readonly Mock<IRepository<Wallet mockRepository;.

Which IDEs are compatible with xunit?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for xunit?

Einschraenkung: Requires repository-specific context from the skill documentation. Einschraenkung: Works best when the underlying tools and dependencies are already configured.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add BridgingIT-GmbH/bITdevKit/xunit. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use xunit immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

xunit

# xUnit Skill xUnit is the testing framework to use. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows. Unit Test Structure

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

xUnit Skill

xUnit is the testing framework to use. Tests use Shouldly for readable assertions and Nsubstitute for mocking. All tests follow strict MethodName_Scenario_ExpectedBehavior naming.

Quick Start

Unit Test Structure

csharp
1public class WalletManagerTests 2{ 3 private readonly Mock<IRepository<Wallet>> _mockRepository; 4 private readonly WalletManager _sut; 5 6 public WalletManagerTests() 7 { 8 _mockRepository = new Mock<IRepository<Wallet>>(); 9 _sut = new WalletManager(_mockRepository.Object); 10 } 11 12 [Fact] 13 public async Task CreateAsync_ValidWallet_ReturnsSuccess() 14 { 15 // Arrange 16 var wallet = new Wallet { Name = "Test" }; 17 _mockRepository.Setup(r => r.AddAsync(wallet)).ReturnsAsync(wallet); 18 19 // Act 20 var result = await _sut.CreateAsync(wallet); 21 22 // Assert 23 result.IsSuccess.Should().BeTrue(); 24 result.Value.Should().Be(wallet); 25 } 26}

Theory with InlineData

csharp
1[Theory] 2[InlineData(12)] 3[InlineData(15)] 4[InlineData(18)] 5[InlineData(21)] 6[InlineData(24)] 7public void GenerateMnemonic_ValidWordCount_ReturnsCorrectLength(int wordCount) 8{ 9 var result = _keyManager.GenerateMnemonic(wordCount); 10 11 result.IsSuccess.Should().BeTrue(); 12 result.Value!.Split(' ').Should().HaveCount(wordCount); 13}

Key Concepts

ConceptUsageExample
[Fact]Single test case[Fact] public void Method_Test() {}
[Theory]Parameterized tests[Theory] [InlineData(1)] public void Method(int x) {}
IClassFixture<T>Per-class shared stateclass Tests : IClassFixture<DbFixture>
ICollectionFixture<T>Cross-class shared state[Collection("Db")] class Tests
IAsyncLifetimeAsync setup/teardownTask InitializeAsync(), Task DisposeAsync()

Common Patterns

Exception Testing

csharp
1[Fact] 2public void Constructor_NullRepository_ThrowsArgumentNullException() 3{ 4 var act = () => new WalletManager(null!); 5 6 act.Should().Throw<ArgumentNullException>() 7 .WithParameterName("repository"); 8} 9 10[Fact] 11public async Task ProcessAsync_InvalidData_ThrowsWithMessage() 12{ 13 var exception = await Assert.ThrowsAsync<InvalidOperationException>( 14 () => _processor.ProcessAsync(invalidContext)); 15 16 exception.Message.Should().Contain("validation failed"); 17}

Async Test Pattern

csharp
1[Fact] 2public async Task ExecuteAsync_ValidBlueprint_CompletesSuccessfully() 3{ 4 // Arrange 5 var blueprint = CreateTestBlueprint(); 6 7 // Act 8 var result = await _engine.ExecuteAsync(blueprint); 9 10 // Assert 11 result.Success.Should().BeTrue(); 12 result.ProcessedData.Should().ContainKey("output"); 13}

See Also

  • See the dotnet-testing-nsubstitute-mocking skill for mocking dependencies
  • See the entity-framework skill for database testing with InMemory provider

Documentation Resources

Fetch latest xUnit documentation with Context7.

How to use Context7:

  1. Use mcp__context7__resolve-library-id to search for "xunit"
  2. Query with mcp__context7__query-docs using the resolved library ID

Library ID: /xunit/xunit.net (875 code snippets, High reputation)

Recommended Queries:

  • "xUnit Theory InlineData patterns"
  • "IClassFixture ICollectionFixture shared context"
  • "IAsyncLifetime async setup teardown"
  • "xUnit parallel test execution configuration"

Verwandte Fähigkeiten

Looking for an alternative to xunit or another community skill for your workflow? Explore these related open-source skills.

Alle anzeigen

openclaw-release-maintainer

Logo of openclaw
openclaw

Lokalisierte Zusammenfassung: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
Künstliche Intelligenz

widget-generator

Logo of f
f

Lokalisierte Zusammenfassung: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code

149.6k
0
Künstliche Intelligenz

flags

Logo of vercel
vercel

Lokalisierte Zusammenfassung: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Lokalisierte Zusammenfassung: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
Entwickler