What problem does it solve?
The Unit Test Generation Prompt helps engineers automate the creation of comprehensive NUnit-based unit tests for C#/.NET projects, aligning with project-specific patterns (NUnit, FakeItEasy, FakeXrmEasy) and improving test coverage and consistency.
Core Features & Use Cases
- Generates complete unit test files for classes and methods across domain, infrastructure, and plugins, including happy paths, edge cases, and error handling.
- Supports NUnit with FakeItEasy for Domain/Infrastructure and FakeXrmEasy for Dataverse plugin tests; includes AAA structure guidance, test data builders, and verification patterns.
- Use cases: when starting a new .NET project, extending test coverage, adopting project testing standards, or adding test files for existing codebases.
Quick Start
Write comprehensive unit tests following project patterns for the provided C# classes, using NUnit with FakeItEasy and FakeXrmEasy as appropriate; ensure AAA structure, coverage of scenarios, and proper verification.