From csharp-dotnet-development
Provides XUnit best practices for C# unit tests: setup, AAA pattern, [Fact]/[Theory] tests, data-driven with InlineData, assertions, Moq mocking, and fixtures/traits.
npx claudepluginhub passelin/marketplace-test --plugin csharp-dotnet-developmentThis skill uses the workspace's default tool permissions.
Your goal is to help me write effective unit tests with XUnit, covering both standard and data-driven testing approaches.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
Your goal is to help me write effective unit tests with XUnit, covering both standard and data-driven testing approaches.
[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 attributes