public void A_Aggregate_must_propagate_an_error()
{
this.AssertAllStagesStopped(() =>
{
var error = new TestException("buh");
var future = InputSource.Select(x =>
{
if (x > 50)
throw error;
return x;
}).RunAggregate(NotUsed.Instance, Keep.None, Materializer);
future.Invoking(f => f.Wait(TimeSpan.FromSeconds(3)))
.ShouldThrow<TestException>()
.And.Should()
.Be(error);
}, Materializer);
}