NSubstitute

A .NET library that creates test doubles for interfaces with readable syntax, such as Substitute.For<IProductRepository>().

In more detail

Configure a return value with .Returns(...) and check a call with .Received(). Assert collaborations only when they are part of the contract.

Related terms

Taught in

References