.NET NSubstitute Returns Multiple Async Result

Cem Yasar
Jul 28, 2022

--

In this post I have shared a challenge to create a unit test which will have a method returning different results in consecutive calls. For instance especially when you want to test a retry mechanism and initially at first call an exception occures then in the next call method execution results success.

--

--

No responses yet