dotnet-testing-autodata-xunit-integration

Community

Automate .NET test data with AutoFixture.

Authorkevintsengtw
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates test data generation for .NET unit tests by integrating AutoFixture with xUnit to reduce boilerplate and improve test reliability.

Core Features & Use Cases

  • AutoData-driven theories: generate parameters automatically for test methods.
  • InlineAutoData, MemberAutoData, CompositeAutoData: mix fixed values, external sources, and combined datasets.
  • CollectionSize: control the size of generated collections for performance and stability.
  • External data sources: support CSV/JSON sources with reusable data sets to drive tests.

Quick Start

Install and apply test data attributes in your test project. Annotate test methods with [AutoData], [InlineAutoData], [MemberAutoData], or [CompositeAutoData], and optionally define custom AutoDataAttributes. Use [CollectionSize(n)] to cap list sizes. Create CSV/JSON sources to feed tests where needed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dotnet-testing-autodata-xunit-integration
Download link: https://github.com/kevintsengtw/dotnet-testing-agent-skills/archive/main.zip#dotnet-testing-autodata-xunit-integration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.