Export (0) Print
Expand All

TestScheduler Class

Base class for testing Rx code.

Namespace:  Microsoft.Reactive.Testing
Assembly:  Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)

public class TestScheduler : VirtualTimeScheduler<long, long>

The TestScheduler type exposes the following members.

  NameDescription
Public methodTestSchedulerInitializes a new instance of the TestScheduler class.
Top

  NameDescription
Public propertyClock Gets the scheduler's absolute time clock value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Protected propertyComparer Gets the comparer used to compare absolute time values. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public propertyIsEnabled Gets whether the scheduler is enabled to run work. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public propertyNow Gets the scheduler's notion of current time. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Top

  NameDescription
Protected methodAddAdds a relative virtual time to an absolute virtual time value. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.Add(TAbsolute, TRelative).)
Public methodAdvanceBy Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodAdvanceTo Advances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodCreateColdObservable<T>Creates a cold observable.
Public methodCreateHotObservable<T>Creates a hot observable.
Public methodCreateObserver<T>Creates a testable observer.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetNext Gets the next scheduled item to be executed. (Inherited from VirtualTimeScheduler<TAbsolute, TRelative>.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSchedule<TState>(TState, Func<IScheduler, TState, IDisposable>) Schedules an action to be executed. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodSchedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodSchedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed after dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodScheduleAbsolute<TState>(TState, Int64, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at the specified virtual time. (Overrides VirtualTimeScheduler<TAbsolute, TRelative>.ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>).)
Public methodScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeScheduler<TAbsolute, TRelative>.)
Public methodScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodScheduleRelative<TState>Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodStart() Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodStart<T>(Func<IObservable<T>>)Starts the test scheduler.
Public methodStart<T>(Func<IObservable<T>>, Int64)Starts the test scheduler.
Public methodStart<T>(Func<IObservable<T>>, Int64, Int64, Int64)Starts the test scheduler.
Public methodStop Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Protected methodToDateTimeOffsetConverts the absolute virtual time value to a DateTimeOffset value. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ToDateTimeOffset(TAbsolute).)
Protected methodToRelativeConverts the TimeSpan value to a relative virtual time value. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ToRelative(TimeSpan).)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodSchedule (Defined by Extensions.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft