What problem does it solve?
This Skill eliminates the friction of writing non-compliant or broken tests for the MediatorLite .NET mediator library, removing guesswork around source generator registration, test type patterns, and pipeline validation rules.
Core Features & Use Cases
- Test Convention Reference: Covers xUnit + FluentAssertions patterns, required DI bootstrap sequences, and static state reset rules for the MediatorLite.Tests project.
- Source Generator Sanity Checks: Includes patterns for using MediatorLiteRegistration.*Count properties to catch source generator regressions instantly without full DI spin-up.
- Use Case: When adding a new request handler, pipeline behavior, or validator to MediatorLite, use this Skill to write end-to-end tests that verify source-generated dispatch works correctly without manual wiring.
Quick Start
Use this skill to author a new xUnit test for a custom MediatorLite request handler, following the project's static tracking state and required DI registration conventions.