Videos

How to use NSubstitute to create Test Doubles in Unity

Impure functions are difficult to test because they rely on direct and indirect input. Test doubles, like those provided by NSubstitute, can be overridden to return the values and verify the behavior you expect.