Dotnet, Development, C Sharp Programming, Csharp, Microsoft.
{_timeProvider.GetUtcNow()}"); } // Output: Start of Task.Delay: 06/01/2024 21:27:30 +00:00 End of Task.Delay: 06/01/2024 21:27:33 +00:00 In your unit tests, you don’t want to wait for this delay of course. For that, you can create a Custom time provider, and override the CreateTimer method,