ronnythedev/dotnet-clean-architecture-skills/21-dotnet-unit-testing
Claude Code and agent skill by ronnythedev/dotnet-clean-architecture-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Generates unit tests for command and query handlers using xUnit and NSubstitute. Implements Arrange-Act-Assert pattern with comprehensive test coverage for success and failure scenarios.
Install
npx vskill@latest install ronnythedev/dotnet-clean-architecture-skills/21-dotnet-unit-testingSKILL.md
Unit Test Generator
Overview
Unit tests for Clean Architecture handlers:
- xUnit - Test framework
- NSubstitute - Mocking library
- FluentAssertions - Readable assertions
- AAA pattern - Arrange, Act, Assert
Quick Reference
| Test Type | Purpose | Example | |
|---|---|---|---|
| Success test | Verify happy path | Should_ReturnSuccess_When_ValidRequest | |
| Failure test | Verify error handling | Should_ReturnFailure_When_NotFound | |
| Validation test | Verify input validation | Should_ReturnValidationError_When_EmptyName | |
| Behavior test | Verify side effects | Should_CallRepository_When_ValidRequest |
Test Project Structure
Template: Test Project File
Template: Base Test Class
Template: Command Handler Tests
Template: Query Handler Tests
Template: Validator Tests
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/21-dotnet-unit-testing/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 11
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ronnythedev/dotnet-clean-architecture-skills/21-dotnet-unit-testing)