title: Unit Testing Reactive Extensions with a method using Wait
body: <p>I am trying to unit test a method that uses the Wait() method on an IObservable however my test never completes - the Wait never finishes. My test contains the following:</p>
  
  <pre><code>var scheduler = new TestScheduler();
  var input1 = scheduler.CreateColdObservable&lt;List&lt;string&gt;&gt;(
     new Recorded&lt;Notification&lt;List&lt;string&gt;&gt;&gt;(100, Notification.CreateOnNext(new List&lt;string&gt; { "John", "Harry" })),
     new Recorded&lt;Notification&lt;List&lt;string&gt;&gt;&gt;(200, Notification.CreateOnCompleted&lt;List&lt;string&gt;&gt;())
            );
  </code></pre>
  
  <p>I am using Moq to setup the response on my method by returning input1. For example</p>
  
  <pre><code>myObj.Setup(f =&gt; f.GetStrings()).Returns(input1);
  </code></pre>
  
  <p>It doesn't actually matter about the details of myObj. I start the scheduler and call my method which contains a Wait(e.g somewhere in my method I call</p>
  
  <pre><code>var results = myObj.GetStrings().Wait();
  </code></pre>
  
  <p>But this never returns. I suspect I am using the scheduler wrong but I am not sure.</p>
  
  <p>Regards
  Alan</p>