csharp-testing - C# and .NET testing patterns and best practices
C# and .NET testing patterns with xUnit, FluentAssertions, mocking, integration tests, and test organization best practices.
Tags
Updated: 2026-09-20Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write unit tests using xUnit
- Create parameterized tests using Theory
- Mock dependencies using NSubstitute
- Build ASP.NET Core integration tests
- Run integration tests with Testcontainers
- Implement test data builders
- Run tests with dotnet CLI
Inputs
- C# source code
- .NET projects
Outputs
- C# test files
- Test execution results
- Code coverage reports
Requirements
- .NET SDK
