FakeItEasy - changing results return for the same method call.



FakeIteasy allow us to specify different results to return depending on your test cases.
In this example,

#3, we are saying we will return this result if called. 

#5, we are saying for the first 2 call, we like a differen results. It has to be said, that the order of code execution is important. 






Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm