Namespace Google.Api.Gax.Testing (4.4.0)

Classes

FakeClock

Implementation of IClock which allows manually-specified times and increments.

FakeScheduler

Experimental - please read remarks. Fake implementation of IScheduler, designed to work with FakeClock.

FakeScheduler.SchedulerTimeoutException

Exception designed not to be caught by tests (which may deliberately expect a timeout of another kind, for example). This exception indicates that the scheduler timed out either in simulated time (e.g. a busy loop with a condition never being satisfied) or in wall time (e.g. user code was waiting for a task which was never going to complete, due to a deadlock).

NoOpScheduler

An implementation of IScheduler that doesn't actually delay. This is useful for tests which aren't interested in precise timing, but just want to be able to use a scheduler. For more fine-grained control, use FakeScheduler.