public void SelectMany_should_be_able_to_resume()
{
var exception = new Exception("TEST");
Source
.From(Enumerable.Range(1, 5))
.SelectMany(x =>
{
if (x == 3) throw exception;
else return new[] {x};
})
.WithAttributes(ActorAttributes.CreateSupervisionStrategy(Deciders.ResumingDecider))
.RunWith(this.SinkProbe<int>(), materializer)
.Request(4).ExpectNext(1, 2, 4, 5)
.ExpectComplete();
}
}