What problem does it solve?
Setting up comprehensive test infrastructure for .NET projects can be time-consuming and error-prone. This Skill provides a ready-to-use pattern for creating xUnit test projects, aligning framework versions, and wiring common test dependencies (Moq, EF Core InMemory) to accelerate reliable testing.
Core Features & Use Cases
- Test Project Setup: Create an aligned xUnit test project with appropriate target frameworks and platform settings to mirror the main project.
- Test Dependencies: Standardize and pin dependencies (Moq, FluentAssertions, Microsoft.NET.Test.Sdk, EF Core InMemory) for consistent tests.
- Test Directory Structure & Helpers: Propose a conventional layout (Tests/Data/Models/Services) and reusable test helpers for common patterns.
- Use Case: Quickly bootstrap tests for a .NET app to validate data access, business logic, and integration flows with in-memory data where needed.
Quick Start
Create a new .NET test project, install xUnit, Moq, FluentAssertions, and EF Core InMemory, and scaffold the recommended test structure for your main project.