Marbles
Namespace: FSharp.Control.Reactive.Testing
Reactive Marbles representation to make working with recorded test notifications like visualising the notifications as marbles.
Functions and values
Function or value | Description |
cold x sch
Signature: x:string -> sch:TestScheduler -> ITestableObservable<string>
|
Creates from the given marble representation a Cold Observable
using the specified TestScheduler .
Note that the marble representation can't have a subscription marker (^ ),
only Hot Observables can have these.
Parameters
x - Marble text representation. Example: --a---b--| .
sch - The given TestScheduler to use to create the Cold Observable.
|
expectMessages sch txt obs
Signature: sch:TestScheduler -> txt:string -> obs:IObservable<string> -> unit
|
Verifies that the given marble representation is indeed the same as the observed messages found in the given test observer.
|
expectSubscription txt xs
Signature: txt:string -> xs:Subscription -> unit
|
Verifies that the given marble representation is indeed the same as the subscription found in the given test observable sequence.
|
expectSubscriptions txt xs
Signature: txt:string list -> xs:Subscription list -> unit
|
Verifies that the given marble representation is indeed the same as the subscriptions found in the given test observable sequence.
|
hot x sch
Signature: x:string -> sch:TestScheduler -> ITestableObservable<string>
|
Creates from the given marble representation a Hot Observable
using the specified TestScheduler .
## Parameters
- x - Marble text represetantion. Example: --^-a---b--| .
- sch - The given TestScheduler to use to create the Hot Observable.
|
messages(txt)
Signature: txt:string -> TestNotifications<string>
|
Creates from the given marble representation a TestNotifications<'a> model.
|
subscription
Signature: string -> Subscription
|
Creates from the given marble representation a Subscription model.
|
subscriptions
Signature: string list -> Subscription list
|
Creates from the given marble representation a Subscription list model.
|