Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Csharp Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-csharp-testing)
---
name: csharp-testing
description: "Write and fix tests in C#/.NET: xUnit with FluentAssertions, mocking at boundaries, async tests and CI settings."
tags: [csharp, testing]
---
# Csharp Testing
## When to use
- Writing or reviewing C#/.NET tests
- Setting up a test suite
- Fixing slow or flaky tests
## Procedure
1. xUnit with FluentAssertions
2. Theory/InlineData for cases
3. WebApplicationFactory for API integration tests
4. Testcontainers for databases
5. Run with coverlet coverage
## Checklist
- [ ] Async tests awaited
- [ ] No shared static state
## Anti-patterns
- Testing private methods via reflection