public void A_FLow_with_a_Sink_Head_must_yield_NoSuchElementException_for_empty_stream()
{
this.AssertAllStagesStopped(() =>
{
Source.Empty<int>()
.Invoking(s => s.RunWith(Sink.First<int>(), Materializer).Wait(TimeSpan.FromSeconds(1)))
.ShouldThrow<AggregateException>()
.WithInnerException<NoSuchElementException>()
.WithInnerMessage("First of empty stream");
}, Materializer);
}