There are a number of operators that are timer based, and I although I don’t have a concrete example, would think it common to create new operators that utilise timers. So how would you go about writing a test that runs synchronously for these operators?
As an example, how could I go about unit testing an operator such as BufferWithTime?
The most accessible way to do the test would be to use
TestScheduler:In addition you can also use a bunch of types from
System.Reactive.Testing.dll, which makes things even easier but takes a dependency onMicrosoft.VisualStudio.QualityTools.UnitTestFramework.dllwhich in turn has a dependency onSystem.Web.dll(not available in the client profile).