Dotnet Testing Nsubstitute Mocking

Using NSubstitute to create test doubles (Mock, Stub, Spy) specialized skill. Used when isolating external dependencies, simulating interface behavior, and validating method calls. Covers Substitute.For, Returns, Received, Throws and complete guidance. Keywords: mock, stub, spy, nsubstitute, mock, test double, test double, IRepository, IService, Substitute.For, Returns, Received, Throws, Arg.Any, Arg.Is, isolate dependencies, simulate external services, dependency injection testing

rudironsoni cc826a2 12.8 KB Updated

File contents

rudironsoni/dotnet-agent-harness/tree/main/.rulesync/skills/dotnet-testing-nsubstitute-mocking commit cc826a217a

Frequently asked questions

npx skillmds@latest add rudironsoni/dotnet-testing-nsubstitute-mocking