Moq

Guidance for Moq mocking framework for .NET unit testing. USE FOR: creating mock objects for interfaces, stubbing method return values, verifying method invocations, argument matching and capture, testing code in isolation from dependencies, simulating exceptions and async behavior in unit tests. DO NOT USE FOR: integration testing with real dependencies (use Testcontainers), mocking static methods or sealed classes (use shims or wrappers), or end-to-end testing.

Tyler-R-Kendrick 328d6b7 22 files · 33.8 KB Updated

File contents

Tyler-R-Kendrick/agent-skills/tree/main/skills/dotnet/testing/moq commit 328d6b7feb

Frequently asked questions

npx skillmds add tyler-r-kendrick/moq