TestScheduler Class
Base class for testing Rx code.
Inheritance Hierarchy
System.Object
System.Reactive.Concurrency.VirtualTimeSchedulerBase<Int64, Int64>
System.Reactive.Concurrency.VirtualTimeScheduler<Int64, Int64>
Microsoft.Reactive.Testing.TestScheduler
Namespace: Microsoft.Reactive.Testing
Assembly: Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)
Syntax
'Declaration
Public Class TestScheduler _
Inherits VirtualTimeScheduler(Of Long, Long)
'Usage
Dim instance As TestScheduler
public class TestScheduler : VirtualTimeScheduler<long, long>
public ref class TestScheduler : public VirtualTimeScheduler<long long, long long>
type TestScheduler =
class
inherit VirtualTimeScheduler<int64, int64>
end
public class TestScheduler extends VirtualTimeScheduler<long, long>
The TestScheduler type exposes the following members.
Constructors
.gif) |
TestScheduler |
Initializes a new instance of the TestScheduler class. |
Top
Properties
Top
Methods
.gif) |
Add |
Adds a relative virtual time to an absolute virtual time value. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.Add(TAbsolute, TRelative).) |
.gif) |
AdvanceBy |
Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
AdvanceTo |
Advances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
CreateColdObservable<T> |
Creates a cold observable. |
.gif) |
CreateHotObservable<T> |
Creates a hot observable. |
.gif) |
CreateObserver<T> |
Creates a testable observer. |
.gif) |
Equals |
(Inherited from Object.) |
.gif) |
Finalize |
(Inherited from Object.) |
.gif) |
GetHashCode |
(Inherited from Object.) |
.gif) |
GetNext |
Gets the next scheduled item to be executed. (Inherited from VirtualTimeScheduler<TAbsolute, TRelative>.) |
.gif) |
GetType |
(Inherited from Object.) |
.gif) |
MemberwiseClone |
(Inherited from Object.) |
.gif) |
Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>) |
Schedules an action to be executed. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
Schedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>) |
Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
Schedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>) |
Schedules an action to be executed after dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
ScheduleAbsolute<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>).) |
.gif) |
ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>) |
Schedules an action to be executed at dueTime. (Inherited from VirtualTimeScheduler<TAbsolute, TRelative>.) |
.gif) |
ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>) |
Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
ScheduleRelative<TState> |
Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
Start() |
Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
Start<T>(Func<IObservable<T>>) |
Starts the test scheduler. |
.gif) |
Start<T>(Func<IObservable<T>>, Int64) |
Starts the test scheduler. |
.gif) |
Start<T>(Func<IObservable<T>>, Int64, Int64, Int64) |
Starts the test scheduler. |
.gif) |
Stop |
Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.) |
.gif) |
ToDateTimeOffset |
Converts the absolute virtual time value to a DateTimeOffset value. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ToDateTimeOffset(TAbsolute).) |
.gif) |
ToRelative |
Converts the TimeSpan value to a relative virtual time value. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ToRelative(TimeSpan).) |
.gif) |
ToString |
(Inherited from Object.) |
Top
Extension Methods
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Reactive.Testing Namespace