Skip to content

Facilitate the control of the course of time in the tests to avoid their fragility #657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bdovaz opened this issue Apr 1, 2025 · 0 comments

Comments

@bdovaz
Copy link

bdovaz commented Apr 1, 2025

Microsoft created in .NET 8 a package with the TimeProvider class.

This class is very useful to be able to mock it and use it together with Task.Delay since it adds an overload with TimeProvider.

Besides, they provide another package to be able to control the course of time in tests.

It would be nice if UniTask had a similar functionality because otherwise, it is difficult to make tests that are not fragile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant