Table of Contents

Namespace TimeAssertions

Classes

ObservableTimeProvider

A TimeProvider decorator that tracks the ITimer instances created against it so tests can assert on timer-disposal behaviour ("did this hosted service dispose every timer it started?"). Every non-timer member delegates verbatim to the wrapped inner provider, so it composes with any provider, most usefully a FakeTimeProvider: advance fake time on the inner provider and assert on the active-timer set exposed here.

TimeRenderingHelpers

Formatting utilities for rendering elapsed durations and timing budgets in human-readable form for assertion-failure messages. Pure; no I/O; allocation-conscious.

Structs

ActiveTimerInfo

An immutable description of a timer tracked by ObservableTimeProvider: the schedule it was created with, or last changed to. Used to render a deterministic "named survivor" diagnostic when a leak assertion fails, so a failure names which timer remained active by its schedule rather than reporting a bare count.