Approved
Last Updated: 06 Aug 2018 07:41 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.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments