Skip to content

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

Description

@bdovaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions