Completed
Last Updated: 05 Feb 2020 10:56 by ADMIN
ADMIN
Mihail
Created on: 23 Nov 2017 07:41
Type: Bug Report
0
Mocking DateTime.UtcNow fails in async test cases
Asynchronous test execution might be run in a separate thread (it depends of the environment and it is completely transparent) which causes arrangements to lose their context. That is why the expected mocked return value for DateTime.UtcNow calls the original code and finally the test fails.
0 comments