public void A_Foreach_must_yield_the_first_error()
{
this.AssertAllStagesStopped(() =>
{
var p = TestPublisher.CreateManualProbe<int>(this);
Source.FromPublisher(p).RunForeach(i => TestActor.Tell(i), Materializer).ContinueWith(task =>
{
if (task.Exception != null)
TestActor.Tell(task.Exception.InnerException);
});
var proc = p.ExpectSubscription();
var ex = new TestException("ex");
proc.SendError(ex);
ExpectMsg(ex);
}, Materializer);
}