dotnet-test

Create and organize xUnit test projects mirroring .NET solution hierarchies.

1|Updated Jun 3, 2025
One-click install
npx skills add https://github.com/emaginebr/emagine-deploy --skill dotnet-test-emaginebr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-test
Source: https://github.com/emaginebr/emagine-deploy/tree/main/.claude/skills/dotnet-test
Command: npx skills add https://github.com/emaginebr/emagine-deploy --skill dotnet-test-emaginebr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Moq, and includes scripts (resource) components.

What problem does it solve?

Developers often struggle with organizing and maintaining unit tests in complex .NET solutions, leading to inconsistent testing practices and difficulty in test management.

Core Features & Use Cases

  • Automated Test Project Setup: Creates a single, structured xUnit test project aligned with solution layers.
  • Folder and File Mirroring: Reproduces source project hierarchies for comprehensive test coverage.
  • Test Template Generation: Produces standardized, maintainable test files for each class, following best naming conventions.
  • Use Case: When adding a new service class, this Skill automatically generates the corresponding test file within the proper folder, ensuring consistent test organization.

Quick Start

Use the dotnet-test skill to quickly generate a new test project and corresponding test files for your existing solution.

Frequently Asked Questions about dotnet-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate unit test generation for .NET projects?

Automating .NET unit test generation involves creating a structured xUnit test project that mirrors your solution layers and source project hierarchies. This ensures consistent test organization and comprehensive coverage across multiple project layers with minimal manual effort.

How do I organize xUnit test files to match my existing .NET solution structure?

Organizing xUnit test files requires mirroring your source project hierarchies within a dedicated test project. This reproduces your folder structures for comprehensive test coverage, ensuring that newly added service classes have corresponding test files placed in the proper folders.

Can I use Moq for dependency mocking in automated .NET test scaffolding?

Yes, you can use Moq for dependency mocking within automated .NET test scaffolding. Generating standardized, maintainable test files supports dependency mocking out of the box, allowing you to apply mocks with minimal manual effort during test creation.

What is the best way to enforce naming conventions across .NET unit tests?

Enforcing naming conventions across .NET unit tests is best achieved through template generation. Producing standardized, maintainable test files for each class automatically applies best naming conventions, eliminating inconsistent testing practices in complex solutions.

Does automated test scaffolding work for solutions with multiple project layers?

Yes, automated test scaffolding is specifically designed for developers managing multiple project layers. It creates a single, structured xUnit test project aligned with your solution layers, ensuring consistent test organization and coverage across the entire solution.