kevfrench / triggers

Simple example of unit testing observable intervals using the Test Scheduler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

triggers

forthebadge

A simple example for me to play with testing time-based Observables using the TestScheduler provided in Microsoft.Reactive.Testing.

So I had something to test I bashed together a simple trigger provider. When I say trigger, I mean an IObservable<Unit> that emits on a fixed frequency. Basically the provider contains a single Observable.Interval that emits a Unit at 50Hz. It uses Observable.Buffer to reduce the frequency as desired.

About

Simple example of unit testing observable intervals using the Test Scheduler

License:MIT License


Languages

Language:C# 100.0%