NSubstitute: Substitutes, Returns & Verification. NSubstitute is a mocking library for .NET, providing a friendly, minimal-syntax API for creating substitute (mock/fake) implementations of interfaces and virtual class me…
ReadNSubstitute: Exceptions, Async & Dynamic Returns. Simulating Failures. // .Throws() configures the call to raise an exception instead of // returning normally -- tests error-handling without a real failing dependency rep…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever